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

iOS 8 - Page control and title not updating ? #8

Open
kumararun540 opened this issue Nov 7, 2014 · 5 comments
Open

iOS 8 - Page control and title not updating ? #8

kumararun540 opened this issue Nov 7, 2014 · 5 comments

Comments

@kumararun540
Copy link

How can i fix to work on iOS 8 ?

@xhzengAIB
Copy link
Owner

in demo not work?

@kumararun540
Copy link
Author

Yes - This line is creating problem - [twitterPaggingViewer setCurrentPage:2 animated:NO];
I just commented this line and its working fine.

But i need to select the middle page automatically ?

And Some times its crashing also -

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 18]'

@ghost
Copy link

ghost commented Dec 7, 2014

Where are you calling -setCurrentPage:animated?
If you're calling it in the app delegate it won't work. Instead, add a property in your app delegate and then switch the current page from the first page that gets loaded from the pager.

So, in your app delegate

@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) XHTwitterPaggingViewer *paging;
@end

then on the first view controller that gets loaded by XHTwitterPaggingViewer

- (void)viewDidLoad {

    [super viewDidLoad];

    self.appDelegate = [UIApplication sharedApplication].delegate;

    [self.appDelegate.paging setCurrentPage:1 animated:NO];

}

This is working for me at least.

@xhzengAIB
Copy link
Owner

@clockworx132
Thank you! I will check this demo crash where,

@mnbayan
Copy link

mnbayan commented Mar 11, 2015

I have encountered the same issue, i needed to show the second page initially. yes, it is showing my second page, but the navigation title and the page index does not update anymore.

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