ios10

UIImagePickerController's cameraViewTransform is ignoring 'scaling' and 'translation' on iOS 10 beta

旧时模样 提交于 2019-11-30 02:33:32
问题 I have been using below code to scale my UIImagePickerController's live preview to fill the entire screen. This worked perfectly till now. Before few days, I installed iOS 10 beta 7 on an iPhone 5 and it doesn't scale anymore. I can see black patch at the bottom of UIImagePickerController's view. Seems like cameraViewTransform is ignoring the CGAffineTransformMakeScale and CGAffineTransformMakeTranslation calls. This is how I initiate my camera controller. I have set both "allowsEditing" and

Getting loaded vs visible cells on a UITableView or UICollectionView

南笙酒味 提交于 2019-11-30 01:51:05
With the introduction of iOS 10, it seems like we're going to have prefetching enabled by default on UITableView and UICollectionViews . This means that cells that aren't displayed on the screen are going to be fetched before the user actually sees them. Here are some relevant methods: UITableView : cellForRowAtIndexPath: : returns " nil if the cell is not visible." visibleCells : each item represents "a visible cell in the table view." indexPathsForVisibleRows : each item represents "a visible row in the table view." UICollectionView : visibleCells : "returns the complete list of visible

(NSFetchedResultsController): couldn't read cache file to update store info timestamps

白昼怎懂夜的黑 提交于 2019-11-30 01:21:15
I upgraded my project to Xcode 8. Now, I'm getting this error log with Xcode 8 and iOS 10 combination. Setting the cacheName to nil in the below code seems fix it. NSFetchedResultsController *frc = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:NULL cacheName:@"myCache"]; What should I do to get rid of this error log and use cache in my FRC? This error should not be ignored because it can cause app crash. It is related to an iOS 10 bug of file descriptor leaks. There are reports on openradar and Apple Bug

Where can I download the iOS 10 simulator runtime file?

被刻印的时光 ゝ 提交于 2019-11-30 00:37:34
I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)? Thanks in advance! EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10). I ran into this issue earlier today. After installing Xcode - beta, my simulator was still only displaying iOS simulators 9.3 and below. What eventually ended up

iOS 10 “Starting WebFilter logging for process” + Proxy-Authorization header removed from request

给你一囗甜甜゛ 提交于 2019-11-30 00:20:00
Starting from iOS 10 I noticed such logs in my app yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: === Starting WebFilter logging for process HelloWorld yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _WebFilterIsActive returning: NO I have reviewed iOS 10 Release notes but there is no info about WebFilter feature Also I noticed that for some sites Proxy-Authorization removed

What is the height of the new iOS 10 Today Widget/Extension?

梦想与她 提交于 2019-11-30 00:07:26
I am building an iOS Today widget, and while testing for iOS 10 I noticed that all widgets are now being given the same height (previous versions allowed the dev to set the height). What is the ideal height/what is the best practice for dealing with this new limitation? I'm in swift and I didn't use autolayout fyi. Thanks in advance! In iOS 10, by default, the height of today widget is fixed. Moreover, the minimum height of collapsed widget is limited. A collapsed widget is the height of roughly two and a half table rows. An expanded widget is ideally no taller than the height of the screen.

How to sync records between Core Data and CloudKit efficiently

本小妞迷上赌 提交于 2019-11-30 00:04:32
I'm currently learning how to use CloudKit Framework and lack of documentation or examples showing how to sync Core Data and CloudKit. I have watched all WWDC videos (2014, 2015, 2016) Dedicated to CloudKit, but none of them telling us how to implement syncing with Core Data. I can't find any fresh examples, tutorial or books, showing how to implement this syncing. I know that it is effective to use Operations API by CloudKit (not Convenience API) and to Subscribe to changes as it said in the new WWDC 2016 videos, dedicated to CloudKit, but mapping with CoreData is a real problem. For example,

This iPhone 6 is running iOS 10.1 (14B55c), which may not be supported by this version of Xcode

情到浓时终转凉″ 提交于 2019-11-30 00:04:24
问题 I'm trying to run the app after I updated Xcode to v8 and iOS to v10, but this error message pops up & prevents me from doing so: This iPhone 6 is running iOS 10.1 (14B55c), which may not be supported by this version of Xcode. What should I do to get rid of this? 回答1: To use the iOS 10.1 beta you need to use the Xcode 8.1 beta. Xcode 8 doesn't support the iOS 10.1 beta. And now since iOS 10.1 and Xcode 8.1 are out of beta, be sure you update to the latest, non-beta of both. 回答2: Update Xcode

UIVisualEffectView in iOS 10

戏子无情 提交于 2019-11-29 23:51:58
I am presenting a UIViewController that contains a UIVisualEffectView as follows: -(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"segueBlur" sender:nil]; } -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if([segue.identifier isEqualToString:@"segueBlur"]) { ((UIViewController *)segue.destinationViewController).providesPresentationContextTransitionStyle = YES; ((UIViewController *)segue.destinationViewController).definesPresentationContext = YES; ((UIViewController *)segue

iOS 10 with XCode 8 GM caused NSUserDefaults to intermittently not work

≯℡__Kan透↙ 提交于 2019-11-29 22:28:30
NOTE: I have seen many other posts on Stack Overflow about NSUserDefaults being renamed to UserDefaults in Swift or not working on simulator until a restart. This is not a duplicate by anyway. Many of the questions SO is tagging against is from 4 years ago. My question is specific to iOS 10 from this year as this has always worked in older versions. I have mentioned in my question already that my question is not a duplicate of those questions as those were simulator bugs in swift and my issue is on device objective C bug. Please read the questions before marking as duplicate My issue is