ios10

iOS 10 新特性介绍(转载)

浪子不回头ぞ 提交于 2019-12-01 15:07:42
https://github.com/ChenYilong/iOS10AdaptationTips 1. iOS 10 新特性以及适配点 1.1 SiriKit 所有第三方应用都可以用Siri,支持音频、视频、消息发送接收、搜索照片、预订行程、管理锻炼等 1.2 Proactive Suggestions 系统预先建议 背景就是iOS9的时候系统给予的主动建议 通过:Spolight搜索,Safari搜索,Handoff,或者siri建议。 在iOS10之后新增了,键盘QuickType建议,地图,车载娱乐,应用切换,siri交互,锁屏播放。eg:你正在一个应用里看一个酒店,可以使用mapitem属性保存正在查看的这个酒店的位置,然后你切换旅行或地图App时这个位置可以自动提供使用。 如果你需要这样利用系统来共享一个位置,那你需要指定这个位置的经纬度、地名、电话等属性来便于siri的直接调起。 1.3 Message App Extension 在 iOS 10 里面开发者可以给 Message.app 提供两种 App Extension,分别是可以提供一个表情包(没错,英文名就叫 Sticker Pack),和一个自定义的界面,用于表情搜索等 1.4 User Notifications 用户通知 iOS 10 中以前杂乱的和通知相关的 API 都被统一了

Beacon monitoring after reboot with iOS10

可紊 提交于 2019-12-01 15:01:22
With iOS9, my app was able to detect beacons even iPhone was restarting. With iOS10 this feature is no more working. It seems that with iOS10 "monitored beacon list" is not restarted agter a phone reboot. Any idea ? There have been a number of reports of failing to monitor beacons in the background after an upgrade to iOS 10. Try this: Setting -> General -> Reset -> Reset Network Settings Launch your app, verifying beacon detection in the foreground Turn off your beacon or leave range to verify region exit in the foreground Put the app to the background (hit home or kill the app) Turn on the

Adaptive Layout in Xcode 8

怎甘沉沦 提交于 2019-12-01 14:28:15
问题 I am developing app using Xcode 8 (beta 1). Unfortunately, I am not able to find "Size Classes" option. In Xcode 7, there was option "Use Size Classes". But in Xcode 8 there is no such option. Is there any help for using Size Classes or similar in Xcode 8? 回答1: Now you have "Use Trait Variations" which is improved version of Size Classes You can now select device based and orientation based trait view much like size classes (iPad Pro, iPad, iPhone 6Splus, iPhone 6s, iPhone SE and iPhone 4s)

iOS 10: UITableViewCell's delete button custom height

北城余情 提交于 2019-12-01 12:55:35
Using custom UITableViewCell, I'm trying to change the height of tableViewCell's delete button. I've tried all the solutions available here on SO. Everyone has mentioned that in customTableViewCell class we need to override layoutSubviews method and iterate over self.subViews to find a subView which should be equal to UITableViewCellDeleteConfirmationView or in other iOS versions it is UITableViewCellDeleteConfirmationControl so I have used following code: - (void)layoutSubviews { [super layoutSubviews]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationBeginsFromCurrentState:YES]

Can you save an edited RAW .dng file on iOS?

北战南征 提交于 2019-12-01 11:15:17
I want to build an iOS 10 app that lets you shoot a RAW ( .dng ) image, edit it, and then saved the edited .dng file to the camera roll. By combining code from Apple's 2016 " AVCamManual " and " RawExpose " sample apps, I've gotten to the point where I have a CIFilter containing the RAW image along with the edits. However, I can't figure out how to save the resulting CIImage to the camera roll as a .dng file. Is this possible? A RAW file is "raw" output direct from a camera sensor, so the only way to get it is directly from a camera. Once you've processed a RAW file, what you have is by

Why won't my app run in XCode 8 beta (8S128d)

二次信任 提交于 2019-12-01 09:10:15
This is an issue that will affect many apps, and can be found in Xcode 8 beta (8S128d). This is the first beta, although it is not labelled beta 1. The issue is with NSUserDefaults; it doesn't work. Here's the code, maybe put it in application:didFinishLaunchingWithOptions: . NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setValue:@"hello world" forKey:@"TEST"]; [defaults synchronize]; NSString * oops = [[NSUserDefaults standardUserDefaults] valueForKey:@"TEST"]; NSLog(@"default = %@", oops); In XCode 7 and earlier, this code works as expected: the value of oops is

Can you save an edited RAW .dng file on iOS?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 09:07:02
问题 I want to build an iOS 10 app that lets you shoot a RAW ( .dng ) image, edit it, and then saved the edited .dng file to the camera roll. By combining code from Apple's 2016 " AVCamManual " and " RawExpose " sample apps, I've gotten to the point where I have a CIFilter containing the RAW image along with the edits. However, I can't figure out how to save the resulting CIImage to the camera roll as a .dng file. Is this possible? 回答1: A RAW file is "raw" output direct from a camera sensor, so

Invalid Siri Support - Warning iTunes Connect

China☆狼群 提交于 2019-12-01 07:07:54
问题 I'm integrate SiriKit in my app for ride a book but after send my app to TestFlight I get a mail response with the next warnings. Invalid Siri Support - No example phrase was provided for INGetRideStatusIntent in the "en-CO" language Invalid Siri Support - No example phrase was provided for INRequestRideIntent in the "en" language I have added the necessary translation to my InfoPlist.string for each localised version but the problem still happens. I'm using the AppIntentVocabulary.plist

Why won't my app run in XCode 8 beta (8S128d)

风流意气都作罢 提交于 2019-12-01 06:53:31
问题 This is an issue that will affect many apps, and can be found in Xcode 8 beta (8S128d). This is the first beta, although it is not labelled beta 1. The issue is with NSUserDefaults; it doesn't work. Here's the code, maybe put it in application:didFinishLaunchingWithOptions: . NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setValue:@"hello world" forKey:@"TEST"]; [defaults synchronize]; NSString * oops = [[NSUserDefaults standardUserDefaults] valueForKey:@"TEST"];

Display image in notification bar with remote notification(Rich media push notification) in iOS 10

自古美人都是妖i 提交于 2019-12-01 06:01:15
I have integrated APNS and want to display image in remote notification like below; I have used below code with reference link ; AppDelegate.h #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate> AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self registerForRemoteNotification]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UIViewController *vc1 = [storyboard