ios8

Swift: rotate oblique a button in iOS8?

橙三吉。 提交于 2020-01-06 13:55:11
问题 Let's say I have one or more 100*50 rectangular buttons on my ViewController. import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func myButton(sender: UIButton) { } } usually I put my graphic images as their image. then I apply auto

Swift: rotate oblique a button in iOS8?

可紊 提交于 2020-01-06 13:55:06
问题 Let's say I have one or more 100*50 rectangular buttons on my ViewController. import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func myButton(sender: UIButton) { } } usually I put my graphic images as their image. then I apply auto

Requesting in use authorization shows no prompt

社会主义新天地 提交于 2020-01-06 09:09:34
问题 I have NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription defined in my Info.plist. In my code I do if ([_locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [_locationManager requestWhenInUseAuthorization]; } [_locationManager startUpdatingLocation]; And I don't get prompted on iOS8. I did a clean reinstall in my simulator. On iOS7 without the 3 if block I get prompted. Right after startUpdatingLocation I check [CLLocationManager

Requesting in use authorization shows no prompt

荒凉一梦 提交于 2020-01-06 09:08:47
问题 I have NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription defined in my Info.plist. In my code I do if ([_locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [_locationManager requestWhenInUseAuthorization]; } [_locationManager startUpdatingLocation]; And I don't get prompted on iOS8. I did a clean reinstall in my simulator. On iOS7 without the 3 if block I get prompted. Right after startUpdatingLocation I check [CLLocationManager

On rotation cell height gets lost on iOS 8 when using auto layout

荒凉一梦 提交于 2020-01-06 07:14:53
问题 Normally iOS 8 should be able to calculate the height of a cell itself. This is working so far, but if I rotate the device the cell gets back to its standard height of 44 points. This is how it should look like: This is how it does look like after rotation: Once rotated it stays in that layout. It never calculates the real height anymore. I don't know why. I have added my complete code. For the constraints have a look into updateConstraints . The code is in C# but you should be able to read

iPhone Interface Orientation on iOS8

▼魔方 西西 提交于 2020-01-06 03:49:33
问题 I have been trying to do this for 2 weeks, and just found out the reason it's not working: Deprecated APIs The following APIs are deprecated: The UIViewController methods and properties for interface orientation. Traits and size classes replace them, as described in Unified Storyboards for Universal Apps. From what's new in iOS 8 What I need is: a FirstViewController , which is the rootViewController to my navigationController . The FristViewController should be only available in Portrait

Null value returns from AddressBook framework in swift

房东的猫 提交于 2020-01-05 11:07:12
问题 In my swift app, I am retrieving AddressBook contacts from AddressBook framework. Contacts are retrieved successfully except the following case. Case 1: If I save a contact number alone without contact name to AddressBook, contact is successfully added. But, If I try to retrieve that contact which does not having name, App crashes, saying that fatal error received. Coding: var contactName: String = ABRecordCopyCompositeName(addressBookRecord).takeRetainedValue() as NSString as String I don't

Issue with portrait display after playing landscape video

眉间皱痕 提交于 2020-01-05 09:35:17
问题 I have an iPhone app that displays files to the user (videos, pdf files and documents). When you click on a file thumbnail in my FileViewController I call UIDocumentInteractionController to present the file to the user. All app screens are locked to portrait orientation apart from the document controller, that can be rotated to view landscape. This has all worked fine in previous releases, but it has suddenly changed and broken, I presume when iOS 8 was released. Now, if I play a video and

Changing text color with Swift

ぃ、小莉子 提交于 2020-01-05 05:01:43
问题 I'd like to change the text color of a cell in my table view. If i do this it's not working. In xcode6 beta 1 it works but on the final version of xcode6 it's not working. Code: cellGrow.textColor = UIColor.whiteColor() Error: 'textColor' is unavailable: APIs deprecated as of iOS 7 and earlier are unavailable in Swift 回答1: Is cellGrow a UITableViewCell? In that case use this:- cellGrow.textLabel?.textColor = UIColor.whiteColor() 来源: https://stackoverflow.com/questions/26423838/changing-text

iOS Test Flight Internal Beta Testing - adding a second build?

那年仲夏 提交于 2020-01-04 12:17:42
问题 I'm trying to use Apple's new TestFlight beta testing program and I am getting hung up on adding a second build. I began the whole process by creating a new app version for submission (1.4). It now sits in the Prepare For Submission state. My first prerelease build, uploaded through xcode, was version 1.4. I was able to add testers and distribute without any problems. Cool. Now I am trying to add a second beta - When I first tried, I was denied because of a 'redundant binary upload' -- I was