ios8

UIAlertController - change size of text fields and add space between them

情到浓时终转凉″ 提交于 2019-12-18 08:33:28
问题 My alert looks like this: Is it possible to make inputs bigger and add space between them? Here is a snippet from my code. I tried changing the frame property of the second text field but it didn't help: let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert) // Add the textfields alert.addTextFieldWithConfigurationHandler({ (textField) -> Void in textField.placeholder = "Vaše jméno" }) alert.addTextFieldWithConfigurationHandler({ (textField) -> Void in textField

requestWhenInUseAuthorization() not Work in iOS 8 With NSLocationWhenInUseUsageDescription Key in Info.plist

泪湿孤枕 提交于 2019-12-18 06:57:05
问题 I am using iOS SDK 8.1 trying to call requestWhenInUseAuthorization() method to prompt user to grant access to my app. I imported CoreLocation.framework, and added NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription keys into info.plist. When I ran the app, it never prompted me for location access. Below is my code, what have I missed? import UIKit import CoreLocation import MapKit class ViewController: UIViewController, CLLocationManagerDelegate { override func

IOS 8 iPad App Crashes When UIActivityViewController Is Called

江枫思渺然 提交于 2019-12-18 06:07:00
问题 When a UIActivityViewController is called on the iPhone in this app, it works perfectly, but when called on a iPad, the app crashes. Below is the code I used: func shareButtonPress() { //when the share button is pressed, default share phrase is added, cropped image of highscore is added var sharingItems = [AnyObject]() var shareButtonHighscore = NSUserDefaults.standardUserDefaults().objectForKey("highscore") as Int! sharingItems.append("Just hit \(shareButtonHighscore)! Beat it! #Swath")

New Fixed position bug on iOS8

纵饮孤独 提交于 2019-12-18 05:55:15
问题 I have a site with a fixed header and slide-out sidebars. With iOS7 in portrait orientation, the fixed header stays fixed when the sidebar is visible, but on iOS8 the header pushes slightly upward depending on how far down you are scrolled. I need it to stay fixed. See this jsbin: http://jsbin.com/xuyevi/2/ The main pieces are a header, a sidebar, and the main content. The header is fixed to the top of the screen using fixed position and has a z-index that keeps it above the content when you

New Fixed position bug on iOS8

南笙酒味 提交于 2019-12-18 05:55:06
问题 I have a site with a fixed header and slide-out sidebars. With iOS7 in portrait orientation, the fixed header stays fixed when the sidebar is visible, but on iOS8 the header pushes slightly upward depending on how far down you are scrolled. I need it to stay fixed. See this jsbin: http://jsbin.com/xuyevi/2/ The main pieces are a header, a sidebar, and the main content. The header is fixed to the top of the screen using fixed position and has a z-index that keeps it above the content when you

Save and Load Data on Today Extensions (iOS 8)

纵饮孤独 提交于 2019-12-18 05:54:16
问题 Is it possible to save and load data on Today Extension using NSUserDefaults? After closing the Notification Center, the widget behaves like an app which is terminated, so any data results lost. How could I solve this issue? This is my code: NSUserDefaults *defaults; - (void)viewDidLoad { [super viewDidLoad]; defaults = [NSUserDefaults standardUserDefaults]; NSArray *loadStrings = [defaults stringArrayForKey:@"savedStrings"]; if ([loadStrings objectAtIndex:0] != nil) { [display setText:

UIWebView showing blank screen in iOS 8

怎甘沉沦 提交于 2019-12-18 05:53:07
问题 I have an app where I can download a pdf and store it in the iPhone. It worked perfectly in iOS 7 (I am currently running on iOS 8) and while running the app in iOS 8, the webView just stays blank. I have I no idea what's wrong. #import "ISJMMisalViewController.h" #import "SWRevealViewController.h" @implementation ISJMMisalViewController @synthesize activityImageView; - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:YES]; [self.webView addSubview:activityImageView];

Save and Load Data on Today Extensions (iOS 8)

試著忘記壹切 提交于 2019-12-18 05:52:50
问题 Is it possible to save and load data on Today Extension using NSUserDefaults? After closing the Notification Center, the widget behaves like an app which is terminated, so any data results lost. How could I solve this issue? This is my code: NSUserDefaults *defaults; - (void)viewDidLoad { [super viewDidLoad]; defaults = [NSUserDefaults standardUserDefaults]; NSArray *loadStrings = [defaults stringArrayForKey:@"savedStrings"]; if ([loadStrings objectAtIndex:0] != nil) { [display setText:

iOS 8 beta 5 Game Center Sandbox won't recognize my app

牧云@^-^@ 提交于 2019-12-18 05:42:13
问题 I trying use GC sandbox in game, on iOS 7 it works fine, but on iOS 8 beta5 GC authentication return error "The requested operation could not be completed because this application is not recognized by Game Center". In production GC work fine on iOS 7 and 8 beta5. 回答1: You should turn on the GC sandbox mode. go to settings --> game center scroll to the bottom, there is a "sandbox" swith under "developer". (Important! - These developer options are hidden until you have connected the device to

containerURLForSecurityApplicationGroupIdentifier returns nil on iOS Simulator

点点圈 提交于 2019-12-18 05:28:10
问题 Context With iOS8 and extensions Apple introduced the App group containers (more info here). Problem We use it through NSFileManager 's containerURLForSecurityApplicationGroupIdentifier: method. It works well in production on AppStore (with both iOS8 and iOS7). Problem is since our team updated to Xcode 6.1 (6A1052d) , the method returns nil on Simulators. We searched a lot but we didn't manage to find any clues. Even this question or this one are not applicable here. TLDR: Question Does