ARSegmentPager icon indicating copy to clipboard operation
ARSegmentPager copied to clipboard

Strange behavior with storyboard

Open chlebta opened this issue 10 years ago • 5 comments

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

chlebta avatar Jun 05 '15 09:06 chlebta

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

AugustRush avatar Jun 05 '15 10:06 AugustRush

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 avatar Jun 05 '15 14:06 chlebta

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

chlebta avatar Jun 08 '15 14:06 chlebta

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.

AugustRush avatar Jun 08 '15 14:06 AugustRush

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

renevdkooi avatar Dec 11 '15 13:12 renevdkooi