ios8

Remove back drop,accessory bar of keyboard in iPhone 5s with iOS 8

拥有回忆 提交于 2020-01-24 15:02:11
问题 I am working on a app in which I have removed the back drop of keyboard using this code in iOS8 with iPhone 5: - (void)removeKeyboardTopBar { // Locate non-UIWindow. UIWindow *keyboardWindow = nil; for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) { if (![[testWindow class] isEqual:[UIWindow class]]) { keyboardWindow = testWindow; break; } } // Locate UIWebFormView. for (UIView *possibleFormView in [keyboardWindow subviews]) { if([[possibleFormView description]

Bridge Swift to Objective-C library “ono” using cocoapods

风格不统一 提交于 2020-01-23 23:27:07
问题 For my swift iPhone app I'm needing to parse XML. I'm using Alamofire and trying to use Ono which is an objective c library. I used cocoapods to install Alamofire & Ono. I've followed the steps here: How to integrate Cocoapods with a Swift project? where I have #import <Ono/Ono.h> in my bridging header. Whats very odd is that in swift I can reference many of the Ono classes, but there is one function XMLDocumentWithData that I can't. E.g. HTMLDocumentWithString I can call, but

Google Directions API failing to return results in iOS

烈酒焚心 提交于 2020-01-23 10:57:09
问题 I’m trying to use Google Directions API. I have the SDK all set up. I have enabled Google Maps SDK for iOS under the Services in the developer console. Below is the URL I've built to get the directions. There are two types of keys in the developer console. First I tried with the Key for iOS apps. https://maps.googleapis.com/maps/api/directions/json?origin=-37.814107,144.96328&destination=-31.953004,115.857469&key=<Key for iOS apps> But I got the error This IP, site or mobile application is

How to disable “Scan Credit Card” feature on iOS 8 Safari?

别等时光非礼了梦想. 提交于 2020-01-23 00:34:52
问题 Recently, Safari on iOS 8 has introduced a new feature "Scan Credit Card" on form fields it detects as a credit card input. However, I can't find any documentation on how this feature works, or more importantly, how to disable this. I DON'T want this displayed on my form, but I don't see any way to disable it. Has anyone figured out how to disable this "feature"? 来源: https://stackoverflow.com/questions/26023276/how-to-disable-scan-credit-card-feature-on-ios-8-safari

[UINavigationController setGoalName:]: unrecognized selector sent to instance 0x7964e2c0

非 Y 不嫁゛ 提交于 2020-01-22 20:37:32
问题 I have created the app with following code. Its working fine with iOS7 but it throws the below error when I run with iOS8. [UINavigationController setGoalName:]: unrecognized selector sent to instance 0x7964e2c0 My firstViewcontroller.m - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { GoalDetailsViewController *goalsDetailsViewController = segue.destinationViewController; NSLog(@"%@",[NSString stringWithFormat:@"%@", [[self.arrCategoryTitle objectAtIndex:indexPath.row]

iOS 8 Today Extension not working on device

微笑、不失礼 提交于 2020-01-22 17:42:48
问题 When I run my Today Extension on the simulator everything works fine and it displays the following as expected: However when I run it on my devices (iPod touch and iPhone 5s) the body won't show (don't mind the title and icon, that was changed) I attached the debugger to my extension and I got this: I have no idea what all of this means... I removed all code for the Today Extension to check if there was a problem with my code and nothing changed so I doubt theres a problem with my code. Any

iOS 8 Today Extension not working on device

浪子不回头ぞ 提交于 2020-01-22 17:42:05
问题 When I run my Today Extension on the simulator everything works fine and it displays the following as expected: However when I run it on my devices (iPod touch and iPhone 5s) the body won't show (don't mind the title and icon, that was changed) I attached the debugger to my extension and I got this: I have no idea what all of this means... I removed all code for the Today Extension to check if there was a problem with my code and nothing changed so I doubt theres a problem with my code. Any

How to make a table from a dictionary with multiple content types in Swift?

青春壹個敷衍的年華 提交于 2020-01-22 10:33:51
问题 I have made an NSArray with NSDictionary objects containing contents downloaded from an api. I also made a tableview object on main.storyboard with a prototype cell with a UIImage label and two text labels as its contents. How can I put the data from array to table so that each cell with same style as my prototype shows contents of NSDictionary from the array. 回答1: You have to implement UITableViewDataSource methods Remember to set dataSource property of tableView to ViewController Than you

Swift TabBar Item color and background color

拜拜、爱过 提交于 2020-01-22 02:21:28
问题 I'm trying to set the icon color and background color of an individual item on my TabBar within the TabBarController. I have 5 icons on my TabBar, 4 of which i've set the color for, it's just this last icon that i'm struggling with. I've attached a link below of an image to show what i'm trying to achieve. The specific icon is (the one in the middle of the image) for my camera feed, this icon i would like to be white and the background to be red. My code so far is such - On my

I need to implement the expandable tableView cell in ios 8

喜你入骨 提交于 2020-01-21 20:06:13
问题 In my project I need to implement the UITableview with some of the tableView cells are expandable and some of them are independent. If it is expandable cell need to indicate the '+' symbol.enter image description here. Can any one please help me out 回答1: I have created a small demo, https://github.com/haripalwagh/ExpandableTableviewCell Screenshot 1 : Before expanding a cell Screenshot 2 : After expanding a cell @interface ViewController () <UITableViewDataSource, UITableViewDelegate> {