Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout Problem (Might be due to arrow position) #1

Open
YahyaBagia opened this issue Feb 25, 2018 · 5 comments
Open

Layout Problem (Might be due to arrow position) #1

YahyaBagia opened this issue Feb 25, 2018 · 5 comments
Labels

Comments

@YahyaBagia
Copy link

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.

simulator screen shot - iphone se - 2018-02-25 at 10 18 17

@keshiim
Copy link
Owner

keshiim commented Feb 27, 2018

@YahyaBagia thankyou, please use new version and try to run again. Hope it works. :)

@YahyaBagia
Copy link
Author

Tried with new pod version but could not get it working. A new observation says that the problem arises when there are more than 1 ZMJTipView(s) present on a screen.

simulator screen shot - iphone se - 2018-02-27 at 19 32 53

@fero2004
Copy link

fero2004 commented Mar 1, 2018

the same issue

@YahyaBagia
Copy link
Author

@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.

@keshiim
Copy link
Owner

keshiim commented Mar 6, 2018

@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!

@keshiim keshiim added the issue label Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants