ios8

Status Bar showing black text, only on iPhone 6 iOS 8 simulator

别说谁变了你拦得住时间么 提交于 2019-12-28 08:09:33
问题 I'm trying to convert my iOS 7 app to iOS 8 in Xcode 6 GM, and when i run it on the iPhone 5s or lower simulators with iOS 8 everything is fine, but on the iPhone 6 and 6 Plus simulators, the Status Bar has black text instead of white like it is everywhere anytime else. I've set the Info.plist UIStatusBarStyle to "Transparent Black Style (alpha of 0.5)" thru Xcode, and that seems to have the desired effect everywhere else. Any ideas what is going on? (I haven't touched any of the storyboards

UITableView layout messing up on push segue and return. (iOS 8, Xcode beta 5, Swift)

帅比萌擦擦* 提交于 2019-12-28 07:59:11
问题 tldr; Auto constrains appear to break on push segue and return to view for custom cells Edit : I have provided a github example project that shows off the error that occurs https://github.com/Matthew-Kempson/TableViewExample.git I am creating an app which requires the title label of the custom UITableCell to allow for varying lines dependent on the length of the post title. The cells load into the view correctly but if I press on a cell to load the post in a push segue to a view containing a

CloudKit won't reset my badge count to 0

荒凉一梦 提交于 2019-12-28 06:46:06
问题 I've tried a number of things and can't seem to reset the badge count from notifications comings from cloudKit. Has anyone else ran into this problem. Here is what I've tried: 1) Set the badge count locally to 0 application.applicationIconBadgeNumber = 0; (temporarily removes the badge count). No luck... 2) Call the server to clear the badge count CKModifyBadgeOperation *oper = [[CKModifyBadgeOperation alloc] initWithBadgeValue:0]; [oper start]; No luck... 3) Pull in all notification changes

Triangle UIView - Swift

为君一笑 提交于 2019-12-28 05:33:24
问题 So I'm making a game in which I am dropping objects which have to be destroyed by a spike(triangle) at the bottom of the screen by a user. I cannot work out how to make a UIView that is a triangle. However I have been able to make it work as a rectangle like this: let barrier = UIView(frame: CGRect(x:125, y: 650, width: 130, height:20)) barrier.backgroundColor = UIColor.orangeColor() view.addSubview(barrier) And this has worked. But I cannot work out how to make a triangle. The reason I want

Triangle UIView - Swift

喜你入骨 提交于 2019-12-28 05:33:09
问题 So I'm making a game in which I am dropping objects which have to be destroyed by a spike(triangle) at the bottom of the screen by a user. I cannot work out how to make a UIView that is a triangle. However I have been able to make it work as a rectangle like this: let barrier = UIView(frame: CGRect(x:125, y: 650, width: 130, height:20)) barrier.backgroundColor = UIColor.orangeColor() view.addSubview(barrier) And this has worked. But I cannot work out how to make a triangle. The reason I want

How do I hide/show tabBar when tapped using Swift in iOS8

好久不见. 提交于 2019-12-28 04:50:06
问题 I am trying to mimic the UINavigationController's new hidesBarsOnTap with a tab bar. I have seen many answers to this that either point to setting the hidesBottomBarWhenPushed on a viewController which only hides it entirely and not when tapped. @IBAction func tapped(sender: AnyObject) { // what goes here to show/hide the tabBar ??? } thanks in advance EDIT: as per the suggestion below I tried self.tabBarController?.tabBar.hidden = true which does indeed hide the tabBar (toggles true/false on

WKWebView and NSURLProtocol not working

拜拜、爱过 提交于 2019-12-28 03:24:26
问题 When using the old UIWebView you could catch the requests by implementing a custom NSURLProtocol. I us this to handle requests that requires authentication. I tried the same code and it doesn't work with the new WKWebView but my protocol class isn't called at all. Is someone experiencing the same problem or is there a better way of doing authentication with the WKWebView? Without any modifications I get a 401 response in the decidePolicyForNavigationResponse delegate function. I've also tried

How to Implement iOS8 Interactive Notification

纵饮孤独 提交于 2019-12-28 02:35:12
问题 I am developing an iOS8 application which supports interactive notification. But I don't have clarity on the features supported by interactive notification and how to send/handle interactive notifications. If any one can give an example, that would be very much helpful for me. Thanks in Advance :) 回答1: First you need to create the notification Action. Second you need to create the notification category and set its actions.You can set for two contexts. UIUserNotificationActionContextDefault or

Why HTML5 video doesn't play in IOS 8 WebApp(webview)?

故事扮演 提交于 2019-12-28 01:42:15
问题 Simple HTML5 video plays on safari browser. but after adding it to home screen(Standalone WebApp), it doesn't work. It is working on iOS7 but stopped working on iOS8. <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>HTML5 Video Standalone Test</title> <style> body{ margin:0; } </style> </head> <body> <video src="http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer_480x270_h264aac.m4v" autoplay="autoplay" controls="true" webkit

Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

别等时光非礼了梦想. 提交于 2019-12-27 13:04:27
问题 I am getting this error on archive: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 How to solve it? Please see the screenshot. 回答1: This problem occurs when the Swift optimization level is not set to None for Release . Set the value to None and the issue goes away. Open up your project and click on the projects root directory. Click the build settings tab. Search for Swift Compiler - Code Generation and under