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

Strange behavior with storyboard #10

Open
chlebta opened this issue Jun 5, 2015 · 5 comments
Open

Strange behavior with storyboard #10

chlebta opened this issue Jun 5, 2015 · 5 comments

Comments

@chlebta
Copy link

chlebta commented Jun 5, 2015

Hello, I'm trying to use this library in this so In mainView.h file that inherits from ARSegmentPageController I've added this code :

-(id)initWithCoder:(NSCoder *)aDecoder{
    return [self init];

}

This will allow to instantiate the view from storyboard as in the programmatically way *mainView view = [[mainView alloc] init]
And then in storyboard I set parent class of Main viewController to mainView.h
This worked but there's some strange behavior the segmentedController was duplicated one move up and down normally and the other stay in same initialPosition check the image :
ios simulator screen shot 5 juin 2015 09 40 35

@AugustRush
Copy link
Owner

you can check out the dev branch now, i have add some code , but not test it.

@chlebta
Copy link
Author

chlebta commented Jun 5, 2015

Thank's it solve the issue but I get this error now :

Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSLayoutConstraint:0x7fd9fab0aca0 V:[ARSegmentPageHeader:0x7fd9fab04f70(200)]>",
    "<NSLayoutConstraint:0x7fd9fab0bac0 V:[ARSegmentPageHeader:0x7fd9fab04f70(194.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fd9fab0aca0 V:[ARSegmentPageHeader:0x7fd9fab04f70(200)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

@chlebta
Copy link
Author

chlebta commented Jun 8, 2015

Also I've just noticed that that the bottom of the view is not properly shown and the bottom of tablevew Is hidden under the tab bar controller

@AugustRush
Copy link
Owner

Sorry for reply you later, I'm a little busy this several days, but I will fixed this issue as soon as possible.

发自我的 iPhone

在 2015年6月8日,22:32,Kaouach Ahmed Alaeddine [email protected] 写道:

Also I've just noticed that that the bottom of the view is not properly shown and the bottom of tablevew Is hidden under the tab bar controller


Reply to this email directly or view it on GitHub.

@renevdkooi
Copy link

got the same problem... inside a tabbar app, it falls behind the tabbar...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants