ios10

How to sync records between Core Data and CloudKit efficiently

為{幸葍}努か 提交于 2019-11-28 21:05:30
问题 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

iOS 10 heading arrow for MKUserLocation dot

自作多情 提交于 2019-11-28 20:36:26
The Maps app in iOS 10 now includes a heading direction arrow on top of the MKUserLocation MKAnnotationView . Is there some way I can add this to MKMapView in my own apps? Edit: I'd be happy to do this manually, but I'm not sure if it's possible? Can I add an annotation to the map and have it follow the user's location, including animated moves? David T I also experienced this same issue (needing an orientation indicator without having the map spin around, similar to the Apple Maps app). Unfortunately Apple has not yet made the 'blue icon for heading' API available. I created the following

ios10 custom push notification sound not playing

杀马特。学长 韩版系。学妹 提交于 2019-11-28 19:05:37
问题 I am currently running iOS 10 beta 8 with Xcode 8.0 beta 6 and the custom sound does not play when I receive a push notification with the correct payload. I have verified the payload and it is in the correct format per the apple documentation: { "aps" : { "alert" : "You got your emails.", "badge" : 9, "sound" : "bingbong.aiff" }, "acme1" : "bar", "acme2" : 42 } When I send the same payload to the same build on iOS9 the custom sound plays properly. Does anyone know if there are any other

iOS 10 iMessage app extension: how do i calculate the height of the extra tall navbar

谁都会走 提交于 2019-11-28 18:21:01
I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into an issue with their seemingly nonstandard nav bar height when i transition into the app's expanded view, my image with the following frame CGRect(x: 0, y: 0, width: 100, height: 100) ends up partially hidden behind the nav bar. i would like it to appear below the nav bar. i tried self.navigationController?.navigationBar.isTranslucent = false but it didn't work, which i guess makes sense since it's out of my app's scope to control. has anyone played around with this yet? i want to avoid

UITableViewCell animate height issue in iOS 10

自古美人都是妖i 提交于 2019-11-28 18:18:52
My UITableViewCell will animate it's height when recognizing a tap. In iOS 9 and below this animation is smooth and works without issues. In iOS 10 beta there's a jarring jump during the animation. Is there a way to fix this? Here is a basic example of the code. - (void)cellTapped { [self.tableView beginUpdates]; [self.tableView endUpdates]; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return self.shouldExpandCell ? 200.0f : 100.0f; } EDIT: 9/8/16 The issue still exists in the GM. After more debugging I have discovered the issue is related

Continuous speech recogn. with SFSpeechRecognizer (ios10-beta)

若如初见. 提交于 2019-11-28 17:38:41
I am trying to perform cont. speech recognition using AVCapture on iOS 10 beta. I have setup captureOutput(...) to continuously get CMSampleBuffers . I put these buffers directly into SFSpeechAudioBufferRecognitionRequest which I set up previously like this: ... do some setup SFSpeechRecognizer.requestAuthorization { authStatus in if authStatus == SFSpeechRecognizerAuthorizationStatus.authorized { self.m_recognizer = SFSpeechRecognizer() self.m_recognRequest = SFSpeechAudioBufferRecognitionRequest() self.m_recognRequest?.shouldReportPartialResults = false self.m_isRecording = true } else {

UNUserNotificationCenter did receive response with completion handler is never called iOS10, swift 2.3

怎甘沉沦 提交于 2019-11-28 17:00:02
I am scheduling new notifications in iOS10, like this: func scheduleNotification (event : Meeting, todaysBadgeCounter: Int) { if #available(iOS 10.0, *) { let minutesBefore = 10 //interval in seconds from current point in time to notification let interval : NSTimeInterval = NSTimeInterval(secondsFromNowTo(event.startTime.dateByAddingTimeInterval(-minutesBefore * 60))) //only schedule in the future if(interval > 0){ let category = NotificationsController.notificationCategory let center = NotificationsController.notificationCenter center.setNotificationCategories([category]) let content =

Xcode 8, iOS 10 - “Starting WebFilter logging for process”

核能气质少年 提交于 2019-11-28 16:15:06
问题 WF: === Starting WebFilter logging for process Test 2016-09-30 08:56:45.458007 Test[616:142557] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2016-09-30 08:56:45.458437 Test[616:142557] WF: _WebFilterIsActive returning: NO I am receiving this warning in my debugger in xcode 8, iOS-10, when I using UIWebView Delegate methods to load something. I didn't find any

xcode 8 push notification capabilities and entitlements file setting

六眼飞鱼酱① 提交于 2019-11-28 15:57:08
when using xcode 8 doing the push notification setting, unlike xcode 7 , xcode 8 need developer turn on push notifications capabilities switch ( located at TARGETS -> AppName -> Capabilities as following pic ), then it will generate AppName.entitlements file as following //AppName.entitlements <key>aps-environment</key> <string>development</string> but for production version App, if we change the string to //AppName.entitlements <key>aps-environment</key> <string>production</string> then the Capabilities show a warning and it seems no matter which string value specified in aps-environment, we

iOS 10 Safari: Prevent scrolling behind a fixed overlay and maintain scroll position

夙愿已清 提交于 2019-11-28 15:44:17
问题 I'm not able to prevent the main body content from scrolling while a fixed position overlay is showing. Similar questions have been asked many times, but all of the techniques that previously worked do not seem to work on Safari in iOS 10. This seems like a recent issue. Some notes: I can disable scrolling if I set both html and body to overflow: hidden , however that makes the body content scroll to the top. If the content in the overlay is long enough so that it can be scrolled, scrolling