Supporting iOS 7

To support iOS7, you need to upgrade to Pugpig 2.0.

You should also consider the following:

Scrollview Insets

Apple has decided that iOS7 should assume you'd want to add an inset in any UIScrollView by default, but then points out you'll probably want this switched off if using more than one scrollview; unfortunately, this doesn't usually play well with our KGPagedDocControl. This behaviour occurs at the UIViewController level, so needs to be specified as such:

In your DocumentViewController's init method, add:

if ([self respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)])
  [self setAutomaticallyAdjustsScrollViewInsets:NO];

To avoid compiler warnings in older versions of Xcode, you can 'fake' the presence of this method by adding a category on UIViewController. Above @implementation in DocumentViewController.m, add:

@interface UIViewController()
- (void)setAutomaticallyAdjustsScrollViewInsets:(BOOL)adjust;

This issue may also affect your KGDocumentPicker - if this is the case, follow the same pattern to rectify the problem in yourDocumentPickerViewController.

Full Screen Content

The new UIViewController behaviour for iOS7 is now for the content to extend to cover the entire screen. The status bar, navbars and toolbars are overlaid over the content, usually semi-transparent with a strong blur applied.

Content that relies on specific pagedDocControl sizes to display properly is particularly at risk, as the height of the viewController (and thus in all likelihood the pagedDocControl it contains) is likely to be at least 20-64px bigger.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk