Layout Problem (Might be due to arrow position)
Opened this issue · 5 comments
TipView's layout gets interrupted for one of three tips shown on a screen.
My code looks like this:
ZMJPreferences *preferences = [ZMJPreferences new];
preferences.drawing.font = [_utils getThemeFontOfSize:17 andBold:NO orMedium:YES];
preferences.drawing.foregroundColor = [UIColor whiteColor];
preferences.drawing.backgroundColor = [_utils getThemeColor];
[ZMJTipView showAnimated:YES forView:sourceView withinSuperview:sourceView.superview text:@"My Text To Be Highlighted" preferences:preferences delegate:nil];
Console prints a statement as "[ZMJTipView - Info] The arrow position you chose <2> could not be applied. Instead, position <1> has been applied! Please specify position <0> if you want ZMJTipView to choose a position for you.
"
I am not specifying arrow position on my own. Even I tried with preferences.drawing.arrowPosition = ZMJArrowPosition_any;
, but could not get it working.
@YahyaBagia thankyou, please use new version and try to run again. Hope it works. :)
the same issue
@fero2004 What I did to solve this problem is to show only one ZMJTipView at a time. I implemented delegate method tipViewDidDimiss
. So that I could display the next tip.
@YahyaBagia As you said, you show multiple ZMJTipView at the same time. If that's the case, I'll try how to solve it. Thank you for your feedback!