ios9

Number keypad with missing keys in ios9

随声附和 提交于 2019-12-12 16:50:56
问题 Does anyone know why an issue like this in iOS9 native Number Pad Occurs. This only happens in one of the viewcontollers and in the rest it works fine. I have set the textfield keyboard type from the interface builder and not via code.Please advice how to overcome this issue. Edited: ScreenShots from Interface builder, 回答1: I had the same issue when configuring the keyboard type in Interface Builder. The problem disappears if I set the keyboard type in my viewDidLoad method: eanTF

Why would an NSURLConnection generate this error, NSPOSIXErrorDomain “Operation Cancelled”?

…衆ロ難τιáo~ 提交于 2019-12-12 14:19:33
问题 In iOS 9, I'm using NSURL with NSURLConnection and for one specific URL, it's generating the following error in the - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error delegate method. Error Domain=NSPOSIXErrorDomain Code=89 "Operation canceled" UserInfo={NSErrorFailingURLStringKey=URL, _kCFStreamErrorDomainKey=1, NSErrorPeerAddressKey={length = 16, capacity = 16, bytes = 0x100201bb41d733370000000000000000}, _kCFStreamErrorCodeKey=89, NSErrorFailingURLKey=URL}

Tableview not scrolling smooth with static data

橙三吉。 提交于 2019-12-12 14:18:27
问题 I am using custom cell and headerView with static images and footerView but not scrolling as smoothly as it should scroll, it is getting stuck in middle and then scrolls........ Header -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ UIView *headerview = [[UIView alloc]init]; if (section == 2) { headerview.frame = CGRectMake(0, 30, tableView.frame.size.width, 117); Button = [[UIButton alloc]initWithFrame:CGRectMake(0, 18, headerview.frame.size.width,

Ambiguous use of 'kGMSMarkerAnimationPop' Error in Swift 2

偶尔善良 提交于 2019-12-12 12:27:57
问题 Im having an error while trying to animate a GMSMarker, I have followed the Google documentation and various guides but it keeps returning an error, below is my code: func placeMarker(coordinate: CLLocationCoordinate2D) { if locationMarker != nil { locationMarker.map = nil } locationMarker = GMSMarker(position: coordinate) locationMarker.icon = GMSMarker.markerImageWithColor(purple) locationMarker.appearAnimation = kGMSMarkerAnimationPop locationMarker.snippet = "The best place on earth."

How can we use HTTP and HTTPS both ATS (App Transport Security) in One Application?

不打扰是莪最后的温柔 提交于 2019-12-12 12:26:54
问题 Apple announced “App Transport Security” for iOS 9 and OSX 10.11 El Capitan. The “What’s New in iOS” guide for iOS 9 explains: App Transport Security (ATS) lets an app add a declaration to its Info.plist file that specifies the domains with which it needs secure communication. ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt. You should adopt ATS as soon as possible, regardless of whether you’re creating a new app or updating an existing one. If we

App Transport Security breaks Web View

跟風遠走 提交于 2019-12-12 11:35:38
问题 My app which works great under iOS8 no longer runs under iOS9. The problem is that despite having the following in my .plist file: <key>NSAppTransportSecurity</key> <dict> <!--Include to allow all connections (DANGER)--> <key>NSAllowsArbitraryLoads</key> <true/> </dict> The following code: NSURL *targetURL = [NSURL URLWithString:_caseStudyListTitleURL]; NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; [_myWebView loadRequest:request]; results in the error: NSURLSession

This application's bundle identifier does not match its code signing identifier

荒凉一梦 提交于 2019-12-12 10:34:43
问题 When I try to build and run the app on the device I get following error App installation failed: This application's bundle identifier does not match its code signing identifier. I checked the signing certificates, bundle ids, provision profile, entitlements and everything is correct. Any Ideas ? 回答1: Go into Building Phases Click the + sing and add script in New Run Script Phase Add /usr/local/bin/carthage copy-frameworks to the script box. In Input Files add a line for each Carthage

IOS UISearchBar Background Color In iOS 9

孤街醉人 提交于 2019-12-12 10:33:25
问题 I have been search a while for this issue , I want my search bar display like BBC News App I try all related method for view in searchBar.subviews { if view.isKindOfClass(NSClassFromString("UISearchBarBackground")!) { view.removeFromSuperview() break; } } self.searchBar.tintColor = UIColor.clearColor() self.searchBar.backgroundColor = UIColor.clearColor() self.searchBar.translucent = true here is my output Am I miss something ??? Please Help me , thx ! 回答1: Swift 3 To remove the background

List the Versions of all the applications installed in iOS device programmatically

女生的网名这么多〃 提交于 2019-12-12 10:01:49
问题 I need to get the Versions of all the installed applications programmatically for non-jailbroken iOS devices. Is it Possible to achieve this? 回答1: That's possible, please try the below code. Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)]; for (LSApplicationProxy *apps in [workspace performSelector:@selector(allApplications)]) { NSString *localizedName = apps

Facebook SDK 4.5 IOS 9

拟墨画扇 提交于 2019-12-12 09:34:01
问题 I got an issue with the new FBSDK. Whenever I try to call the login method logInWithReadPermissions, I get this error message: ERROR : "canOpenUrl : failed for url "fbauth2://" error: "(null)" I have my config .plist file following the ios9 tuto ( https://developers.facebook.com/docs/ios/ios9 ) on dev.facebook. So, I got the NSAppTransportSecurity dictionary and the LSApplicationQueriesSchemes array (with the string "fbauth2" on it) Would you know how to resolve this error? 回答1: 1]