ios8

I need to implement the expandable tableView cell in ios 8

早过忘川 提交于 2020-01-21 20:05:23
问题 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> {

UIActionsheet in Ios8

烈酒焚心 提交于 2020-01-21 12:19:18
问题 I have implemented actionsheet in my project having deploy target ios7 and less actionsheet works fine. UIActionsheet in Ios8 not working same as other version of Ios. How i make it working properly? Thanks 回答1: UIActionSheet is deprecated from iOS8, You should use UIAlertController. You have to choose the alert style: it could be an AlertView or a Sheet. Check here for Apple reference. See this for an example. 来源: https://stackoverflow.com/questions/26336252/uiactionsheet-in-ios8

“No such module 'LocalAuthentication'” when trying to import in Xcode 6 using Swift

梦想与她 提交于 2020-01-21 11:46:10
问题 I wanted to build a simple demo app using the new LocalAuthentication framework and Swift. I made a new Single View project, and added one line to the top of the ViewController.swift file: import LocalAuthentication Whereupon Xcode tells me there is no such module. Obviously very new to Swift, what am I doing wrong? 回答1: Same problem occurs with Objective-C code. Seems like it is an issue of beta 1. If you run your project on an iOS 8 device (tested on a 5s iPhone), it will work. But it doesn

App freeze on ios 8 when push or pop

最后都变了- 提交于 2020-01-21 03:19:28
问题 My app has one big problem. Mainly on iOS 8 because we have not found this on other iOS versions. It will freeze sometimes when push to a new view controller or pop to a previous view controller. But something strange is if you press home button and launch the app from background. It will run a little. Here I mean the new pushed or popped view controller appeared but you still could not push or pop new view controllers. update: The memory, CPU and disk usage are all normal when the app freeze

WKWebView isn't clickable outside it's contentInset

旧城冷巷雨未停 提交于 2020-01-20 14:25:01
问题 I have an app with a UIWebView and I need to change it into WKWebView. Everything works perfectly, except when the webView needs to be with contentInset that is not 0. The problem is, the WKWebView doesn't receive touches outside of the bounds of its scrollView's contentInset. I've made a simple example app for testing it: - (void)viewDidLoad { [super viewDidLoad]; WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; self.wkWebView = [[WKWebView alloc] initWithFrame:self

WKWebView isn't clickable outside it's contentInset

北战南征 提交于 2020-01-20 14:22:47
问题 I have an app with a UIWebView and I need to change it into WKWebView. Everything works perfectly, except when the webView needs to be with contentInset that is not 0. The problem is, the WKWebView doesn't receive touches outside of the bounds of its scrollView's contentInset. I've made a simple example app for testing it: - (void)viewDidLoad { [super viewDidLoad]; WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; self.wkWebView = [[WKWebView alloc] initWithFrame:self

how to get keyboard location in ios 8 & add DONE button on numberPad

馋奶兔 提交于 2020-01-19 05:35:05
问题 I am using below code to get the keyboard location from view & add DONE button on it.But in ios 8 it is not able to get keyboard location & hence not add DONE button. UIWindow *tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1]; UIView *keyboard; for (int i = 0; i < [tempWindow.subviews count]; i++) { keyboard = [tempWindow.subviews objectAtIndex:i]; // keyboard view found; add the custom button to it if ([[keyboard description] hasPrefix:@"<UIPeripheralHostView"] ==

Swift core data does not store data permanently

旧街凉风 提交于 2020-01-17 17:12:05
问题 I have an Entity called "Friend".. Attributes are name and age..here I have implemented bridging because NSManagedObject class for Friend has .h and .m file. My code to store data: var err: NSError? var delegate:AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate var friend:Friend = Friend(entity: NSEntityDescription.entityForName("Friend", inManagedObjectContext: delegate.managedObjectContext), insertIntoManagedObjectContext: delegate.managedObjectContext) friend

Move specific UITextField when the Keyboard show

牧云@^-^@ 提交于 2020-01-17 08:56:20
问题 I followed the Apple documentation to move a textfield upwards when the keypad appears. The code works fine my problem is that I need that one specific textfield is moved towards the other, instead of implementing the code Apple every textfield I select is moved upwards ... How can I do to move a specific textField and not all? Thank you very much, I insert the following code used -(void)viewWillAppear:(BOOL)animated { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector

ViewController offset after device rotation in iOS8

此生再无相见时 提交于 2020-01-17 05:16:06
问题 I am experiencing an odd problem with legacy code running in iOS8. The code was originally written pre-iOS6, pre-storyboards (using nibs) and functioned without issue on iOS7. However, strange behavior began to occur when running on iOS8. The app is set to run only in landscape (left or right). Therefore it should support autoRotation from landscape-left to landscape-right. The first problem was that the initial view controller was loaded in portrait and one side was cut off. This issue was