ios9

Dynamic Type and Self-Sizing Cells with Static Table

北城余情 提交于 2019-12-13 11:39:35
问题 I have a typical master-detail app that allows the user to browse a scrolling list of objects, and then drill to detail for any particular object with a push segue. The scrolling master list is a UITableView built with prototype cells, and the detail scene is a static UITableView with a fixed number of sections and cells. I would like to implement Dynamic Type and Self-Sizing Cells in my app so that the user can change the base font size. So far, I have been successful making self-sizing

xcode 7: error: editor placeholder in source file

爷,独闯天下 提交于 2019-12-13 08:31:33
问题 I am trying to create a button on apple maps that will relocate the user if he or she navigates elsewhere. I found some old solutions to this problem for like ios 7 or 8 which no longer worked in ios 9. This is what I tried @IBAction func locateMe(sender: AnyObject) { self.mapView.setUserTrackingMode(MKUserTrackingMode, animated: true) } there are no errors before I try to run it but when I do it says: editor placeholder in source file 回答1: I didn't solve the bug issue, But i did realize how

Cannot open URL in UIWebView in ios 9.0

99封情书 提交于 2019-12-13 07:27:56
问题 I get the following message when i try to open a URL in UIWebView- App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. I already tried the method given here but I get the same error report at the console 回答1: NSAppTransportSecurity add to info.plist , data type is Dictionary, then add an item NSAllowsArbitraryLoads , which is boolean value and set it to YES, then restart the

NSURLConnection method use with IPv6

▼魔方 西西 提交于 2019-12-13 07:10:43
问题 I have code my project using SOAP methods in NSURLConnection.Recently new version update reject it cause of ipV6 issue for ios9+ Now i check that for supporting ipV6 you need to convert code to standard networking APIs like NSURLSession and CFNetwork APIs provided by apple. Is there alternative without converting my more then 350+ api , it will work with ipV6 . 回答1: Now that NSURLConnection has been deprecated it's just a question of time before your code stop working with new iOS updates. So

iOS9 Navigation Bar Back Button not working

一曲冷凌霜 提交于 2019-12-13 05:57:46
问题 Everything works perfectly before iOS 9. However, when the app is running on iOS 9, nothing happens when back button is tapped so I am not able to go back as well as it keeps greyed out. Also, I am not able to segue to the next view after the first segue. For example, HomePage -> tap a button to segue to view 1 -> Segued to View 1 -> tap on a button to segue to view 2 -> nothing happens I uses the code below to perform segue, UIViewController *push = [self.storyboard

UIActionSheet can't show as expected in iOS9

喜欢而已 提交于 2019-12-13 05:53:24
问题 I found my app can't show UIActionSheet as expected in iOS9。 when I show action sheet, the cornerRadius is big than normal cornerRadius at first, and it will recover to the normal cornerRadius in a very short time。link of images Any help and suggestions will be highly appreciable。 回答1: Disable Renders with edge antialiasing(UIViewEdgeAntialiasing) in your Info.plist 来源: https://stackoverflow.com/questions/32889588/uiactionsheet-cant-show-as-expected-in-ios9

Swift: NSCountedSet with Map

ⅰ亾dé卋堺 提交于 2019-12-13 05:33:06
问题 I would prefer to use Person Struct , but I since it does not confirm to AnyObject , I can't use it with NSCountedSet class Person: AnyObject { var name: String = "" var age: Int = 0 var score: Int = 0 } let personA = Person() personA.name = "john" let personB = Person() personB.name = "larry" let personC = Person() personC.name = "jack" let personD = Person() personD.name = "bob" var people:[AnyObject] = [personD, personC, personA, personB, personC, personA, personC, personD, personD] let

Animate UILabel resizing from center?

北城以北 提交于 2019-12-13 05:32:00
问题 I want to resize my label from center and animate that process. However, the only option I can use there is CGAffineTransformMakeScale with default anchor point of corresponding CALayer. [UIView animateWithDuration:0.5 animations:^{ self.title.transform = CGAffineTransformMakeScale(2.0,1.0); }]; But it squished the text inside. I considered this answer and it looks like the problem is solved in Swift. However, I can't modify only size part of the frame . How to approach this in Obj C? 回答1:

Universal Links to Amazon

馋奶兔 提交于 2019-12-13 05:31:24
问题 Shouldn't we be able to use Universal Links into Amazon on iOS? They are hosting this file: https://www.amazon.com/apple-app-site-association and this blog post seem to be certain of it. However, if I make a link that follows one of their site-association rules, such as http://www.amazon.com/gp/product/0062273205, I keep getting directed to Safari instead of the app. I have never clicked Back to X from the Amazon app, so it can't be that cache that is messing with me. 回答1: Universal Links do

UIButton is not appear on view in iOS 9

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:44:48
问题 I have created my project in iOS 8 it works fine and now i am trying to run in iOS9.UIButton is not appearing. I have created a button programmatically, but it is not appearing only in iOS9. It works fine in iOS7 and iOS8. Please see the below code. UIButton *NewOrderButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [NewOrderButton addTarget:self action:@selector(ButtonClicked:) forControlEvents:UIControlEventTouchUpInside]; [NewOrderButton setTitle:@"Create" forState