ios9

Update device token in installation table in parse ios

非 Y 不嫁゛ 提交于 2019-12-11 14:49:34
问题 I want to update device token in installation table on parse using iOS . To save a device token I did: PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:(NSData*)[AppHelper userDefaultsForKey:@"token"]]; [currentInstallation setObject:[PFUser currentUser].objectId forKey:@"user"]; NSArray *channels = [NSArray arrayWithObjects:@"AnyString",nil]; currentInstallation.channels=channels; [currentInstallation saveInBackground]; I

Flurry.h not found through bridging header when using cocoapods

主宰稳场 提交于 2019-12-11 13:52:36
问题 In my xcode workspace (using cocoapods), I am not able to add Flurry.h in my bridging header . Other headers from other pods like Dropbox, etc are working fine. Only Flurry headers are not being recognized. I have my podfile as below: platform :ios, '9.0' use_frameworks! pod 'Alamofire', '~> 3.1' pod 'SwiftyDropbox', '~> 2.0.3' pod 'Flurry-iOS-SDK/FlurrySDK' pod 'Flurry-iOS-SDK/FlurryAds' pod 'Parse' My Bridging Header is as below (with the problem highlighted!): Here is the Pods project

Xcode 7 GM - not able to call enumerateObjectsUsingBlock

你离开我真会死。 提交于 2019-12-11 13:32:53
问题 I just downloaded xcode 7 GM and trying to call the method enumerateObjectsUsingBlock of NSArray with iOS 9 but it shows the following error at build time. Incompatible block pointer types sending 'void (^)(SKSpriteNode *__strong, NSUInteger, BOOL *)' to parameter of type 'void (^ _Nonnull)(SKNode * _Nonnull __strong, NSUInteger, BOOL * _Nonnull)' This is the Apple documentation about enumerateObjectsUsingBlock method: - (void)enumerateObjectsUsingBlock:(void (^)(ObjectType obj, NSUInteger

How to get all previously connected Wi-Fi networks in Swift?

家住魔仙堡 提交于 2019-12-11 12:35:27
问题 I know it's not possible to get all available Wi-Fi networks and it's possible to get the information of current connected Wi-Fi network, correct me if I'm wrong. I just want to know the feasibility of getting the information of all previously connected Wi-Fi networks, Please help me by sharing your experience. FYI, I'm using the following code get current connected Wi-Fi network's info and it's working fine. var currentSSID: String! let interfaces:CFArray! = CNCopySupportedInterfaces() for i

How to check App slicing feature in iOS without uploading it to Appstore

泪湿孤枕 提交于 2019-12-11 12:20:12
问题 I am working on App slicing feature and set all images in asset, i need to check that feature without uploading on Appstore. Is that possible? is there any way by which we can get .IPA file and check it's size or resources. 回答1: If you want to check the size of application '.ipa' file. Just follow the following steps. Open the Archives organizer (choose Organizer from the Window menu), and select the archive. Click the Export button, select an export option, and click Next. To distribute your

UIAlertController does not show immediately

坚强是说给别人听的谎言 提交于 2019-12-11 12:17:32
问题 Xcode version: 7.2.1, iOS version: 9.1+ I am trying to display a UIAlertController alert message on the iPad that shows a "Loading...Please Wait" message without any buttons on it. I present the UIAlertController before starting a long operation, and then after the long operation, I dismiss the UIAlertController. However, what is happening is the UIAlertController DOES NOT show up immediately. It only flashes up briefly AFTER the longer operation is completed, and then it is dismissed.

How to encode special character like ’ (NSWindowsCP1250StringEncoding) in Swift2

孤人 提交于 2019-12-11 11:57:20
问题 As in Swift2 stringByAddingPercentEscapesUsingEncoding() is deprecated instead of stringByAddingPercentEncodingWithAllowedCharacters() is used. But how to encode the especial character like ' % & in swift2 For example in iOS8 (swift1.2) i used following code for encoding NSURL(string: "myurl.php?deviceName=name’phone".stringByAddingPercentEscapesUsingEncoding(NSWindowsCP1250StringEncoding)!) it work fine i.e. on server it decode correctly. But in iOS9 (Swift2.0) i used following code NSURL

Landscape Launch Images on Xcode 7 madness

ε祈祈猫儿з 提交于 2019-12-11 11:57:20
问题 The application only works on landscape mode. Since iOS 9 release is imminent we're preparing our app to support the latest and greatest. So I've migrated to use .xcassets for the LaunchImages and setup all the images iPhone/iPad supporting back to iOS6. Running the app in an iPhone 6 with iOS 9 installed shows the launch image just fine, but when running the app in an iPhone 6 with iOS 8 it just shows a black screen! I've also used the UILaunchImages key in the plist and another weird this

Get full text of search request from Spotlight?

一笑奈何 提交于 2019-12-11 11:51:27
问题 Since iOS9, it's possible to make Spotlight to show some items from own Application in search results. When user taps on result - App opens with some action handler. My question: is it possible somehow to get the full text of user's search request in application? Example: My application indexes item 'banana' using CoreSpotlight API. User searches: " banana pie ". Spotlight shows result from my App, actually, item " banana ". I would like to get string " banana pie ". I have already tried to

iOS9 Safari viewport issues, meta not scaling properly?

半城伤御伤魂 提交于 2019-12-11 10:19:09
问题 I have a bizarre issue with a recent website deployment - the website is not scaling properly on any iOS9 Safari-mobile browser which appears to shrink the site. This does not appear to be a problem for any other device as far as I can see and I have tested it on Firefox (Android and Desktop), Chrome (Android and Desktop), Safari (Desktop), IE (Desktop). Does anyone know a fix for this? Many thanks [UPDATE] Following on from a discussion here this meta seems to do the job: <meta name=