ios9

'Google/Analytics.h' file not found - XCode 7

半城伤御伤魂 提交于 2019-12-05 15:44:35
问题 I am having much trouble integrating Google Analytics SDK into my iOS project. I am using XCode 7 and targeting iOS 7. Using Swift 2.0. However I can get the sample working ok (not converting to Swift 2.0 though). I've tried both install via CocoaPods and by copying the files manually from: https://developers.google.com/analytics/devguides/collection/ios/v3/sdk-download When installing via CocoaPods I've tried both pod 'Google/Analytics' , pod 'GoogleAnalytics' and pod 'Google/Analytics', '~>

SpriteKit shader crash iOS 9: SKDefaultShading, gl_FragCoord

ⅰ亾dé卋堺 提交于 2019-12-05 15:13:11
问题 Just installed the iOS 9 open beta (version 3) and now I'm having loads of problems with SpriteKit shaders. On iOS 8 the following code worked just fine: _fontShader = [SKShader shaderWithFileNamed:@"TheShader"]; // TODO: iOS9 compatibility issues here _fontUniform = [SKUniform uniformWithName:@"labelBase" float:0]; [self.fontShader addUniform:self.fontUniform]; // TODO: iOS9 compatibility issues here _fontEffects = [SKEffectNode node]; self.fontEffects.shader = self.fontShader; // TODO: iOS9

Login flow failing after upgrading to iOS9

冷暖自知 提交于 2019-12-05 14:19:46
After upgrading my app to iOS9 I’am getting an error in my app which says: : objc[344]: Cannot form weak reference to instance (0x15919e00) of class LoginVC. It is possible that this object was over-released, or is in the process of deallocation. Below is the function in which i get this error: -(void)dismissLogin { self.isLoggingIn = NO; [self stopLoginAnimation]; [self dismissViewControllerAnimated:YES completion:NO]; [[NSNotificationCenter defaultCenter] removeObserver:self]; [self.appDelegate setLoginVC:nil]; [self.view removeFromSuperview]; //[APPDEL selectTabBar]; } The app gets stuck at

Refactored storyboard fails to compile XCode7

你说的曾经没有我的故事 提交于 2019-12-05 12:59:02
I've decided to split the my (quite complex) storyboard into smaller chunks using the new "Storyboard refactor" feature in XCode7. I've started with one tab and refactored all the controllers within that tabbed navigation controller into separate file. But the storyboard fails to compile with "Storyboard References cannot be the destinations of relationship segues prior to iOS 9.0" . Now I've read that storyboard references should be deployable to iOS8 (which is our deployment target) "Storyboard References may now be deployed to iOS 8, OS X 10.10, and watchOS 1." . This might not be true but

Getting video from Asset Catalog using On Demand ressources

大城市里の小女人 提交于 2019-12-05 12:30:32
I attributed to my .mp4 video the "tokyo" tag for example, and set it as installed during the app installation. Now before I was using a Path to get it from my resources, now it's different because it's located on the Asset Catalog. After found documentations, I tried something like : NSBundleResourceRequest(tags: ["tokyo"]).beginAccessingResourcesWithCompletionHandler { (error) -> Void in let tokyoVideo = NSDataAsset(name: "tokyo") So I can do : tokyoVideo.data to access NSData but I'm using AVPlayer which take in parameter an NSURL, not data. So what can you suggest me for getting a NSURL of

UIStackView and multi-line labels in a UITableViewCell

旧时模样 提交于 2019-12-05 12:18:59
I want to have a custom UITableViewCell with a number of vertically stacked UILabel s all of which can contain text that wraps multiple lines. With the new UIStackView in iOS9 and the cell self-sizing mechanism I thought this would be straightforward, but I can't get it to work. I am using Xcode 7beta3. I created a simple test app. This is the setup in IB: The UIStackView is vertical with UIStackViewDistribution.Fill and UIStackViewAlignment.Fill but I have basically tried all the combinations without success. The UILabel s have numberOfLines = 0 and lineBreakMode = .ByWordWrapping . The code:

Objective C- iCal not creating custom calendar and new event to it in iOS 9

故事扮演 提交于 2019-12-05 11:52:03
This working perfectly in iOS 8. But creating issue in iOS 9.Here is code : self.eventManager.eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { if (granted) { // Create a new calendar. EKCalendar *calendar = [EKCalendar calendarForEntityType:EKEntityTypeEvent eventStore:self.eventManager.eventStore]; // Set the calendar title. calendar.title = @"<APP name>"; calendar.CGColor=APP_Blue_COLOR.CGColor; // Find the proper source type value. for (int i=0; i<self.eventManager.eventStore.sources.count; i++) { EKSource *source = (EKSource *)[self

The file couldn’t be opened because URL type http isn’t supported

谁说我不能喝 提交于 2019-12-05 11:30:18
Using iOS 9 I'm attempting to use NSFileManager's moveItemAtURL : do { print(localURL) // http://localhost:3000/api/v1/activities print(cacheFile) // file:///Users/kyledecot/Library/Developer/CoreSimulator/Devices/35C03988-D8F5-42E5-AB35-B99BE461EEAE/data/Containers/Data/Application/69593B3A-F764-4BC3-89AD-72B701BF85C8/Library/Caches/activities.json try fileManager.moveItemAtURL(localURL, toURL: cacheFile) } catch let error as NSError { print(error) } When catching the error I'm getting: Error Domain=NSCocoaErrorDomain Code=262 "The file “activities” couldn’t be opened because URL type http

Frame calculations in `viewDidLayoutSubviews`

青春壹個敷衍的年華 提交于 2019-12-05 11:29:54
First, I should mention, this is mostly an efficiency issue. There are many discussions as to where to do frame calculations where viewWillAppear is too early and viewDidAppear is too late (view is already visible). The common answer is to do frame calculations in viewDidLayoutSubviews . Problem is, it gets called multiple times. Worse, the most accurate call, the one where all frames have their final size is the last one. To my knowledge there is no way to know which call is that final one. We use to have a 'framesAreSet' flag (initialized false) and a check, where if frame is not zero

Xamarin.Auth iOS9 Authentication SSL ERROR

瘦欲@ 提交于 2019-12-05 11:10:01
I've just updated XCode to the 7.0 (7A220) and this take my Simulators to iOS9. From that moment I cannot perform successfully any OAUTH call from the simulators.. I tried every model, from my App to the "sample Xamarin.Auth App". The answer is always the same: "Authentication Error An SSL error has occurred and a secure connection to the server cannot be made" The Code is the STANDARD one, I only changed my AppID. The same code is working on the Android version of the same App! var auth = new OAuth2Authenticator ( clientId: "my app id", scope: "", authorizeUrl: new Uri ("https://m.facebook