ios8

keyboard height varies in ios8

故事扮演 提交于 2019-12-06 11:59:12
Am using the below code to get keyboard height which varies in IPhone 5s device with ios8 compared to IPhone4s device with ios7 .As a result my textfield is moving very high when i tap on it in IPhone5s with ios8 while the same code works fine in IPhone 4s with ios7.Can someone guide how the problem can be fixed in both versions. - (void)keyboardWasShown:(NSNotification*)notification { NSDictionary* info = [notification userInfo]; CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; float kbHeight; if (([UIApplication sharedApplication].statusBarOrientation==

How to programmatically disable predictive view in WebView of iOS 8

纵然是瞬间 提交于 2019-12-06 10:47:37
问题 I'm designing a custom keyboard for iOS 8. It works fine on any UITextField but when it's in UIWebView, it shows predictions. Since it's allowed to have custom keyboard in iOS 8 I assume there should be a way to disable this view. Any help would be appreciated. Red area of the following picture: 回答1: I found a workaround solution for this problem. If you add type="email" instead of type="text" in your HTML file like bellow, iOS keyboard won't show the predictive view :) <input type="email"/>

iOS 8 video progress bar not visible

一曲冷凌霜 提交于 2019-12-06 10:46:18
I have an iOS app in which I am trying to show videos using MPMoviePlayerController . The code is very simple and working fine on all the devices with all iOS version greater than 6.0. But the problem is on iOS 8 and 8.1, the progress bar of the video is not visible as shown in below image. I dont understand why this is happening or is this iOS 8 bug. Please suggest. Thanks in advance. I had this issue too in my app, which supports several iOS versions but this issue is indeed only visible on iOS 8. My code toggles the MPMoviePlayerController 's controlStyle between MPMovieControlStyleEmbedded

iOS 8 MDM: managed app configuration doesn't work

安稳与你 提交于 2019-12-06 10:41:41
问题 In our custom mobile device management (MDM) solution we use managed app configuration: MDM server pushes InstallApplication payload with Configuration dictionary. The app uses [[NSUserDefaults standardUserDefaults] dictionaryForKey:@"com.apple.configuration.managed"]; Everything worked fine. Due to changes in iOS 8.1.3 we resigned the application as it's described here. After that the app can be installed and it launches well on iOS 8.1.3+. But it cannot read the configuration using

iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?

半腔热情 提交于 2019-12-06 10:25:54
Apple recommends using playInputClick in custom keyboards to simulate a click sound. It's easier to implement AudioServicesPlaySystemSound(1104); so my question then becomes, does playInputClick provide better performance or is it the same thing? Reason Apple recommended this is probably not performance. AudioServicesPlaySystemSound(1104) will probably always play the same sound but playInputClick may play another sound in the future if Apple decides to change the input click sound. So they are the same right now but it might change and if it does your app will be the only one playing the old

cursor exceeds the border when tap or select all content in input fields on iOS 8

我的梦境 提交于 2019-12-06 10:16:34
IOS8 has the problem, IOS7 does not. I have a input tag whose content's length is longer then its width. <input type="text" value="abcdefghijklmnopqrstuvwxyz" /> when tap , the cursor exceeds the right border, see cursor.png. And when select all the select scroll also exceeds the border. see selectall.png Is anyone else happened the problem.Thanks! 来源: https://stackoverflow.com/questions/27053549/cursor-exceeds-the-border-when-tap-or-select-all-content-in-input-fields-on-ios

iOS 8 - Launching the application in Landscape mode

杀马特。学长 韩版系。学妹 提交于 2019-12-06 10:08:30
My iPad application supports all the orientations and it worked fine in iOS 7 as well. However in iOS 8 , launching the application in Landscape mode made my login view draw the landscape view within a portrait frame. After doing some analysis I found out that the application window does not take the correct orientation while launching in Landscape . Doing a rotation after that corrects the UI since it takes the correct orientation from that point onwards. Would someone be able to guide me through this? Thanks in advance. The issue seems to be the order of calls when you set up the window. You

MFMessageComposeViewController issues in iOS8

徘徊边缘 提交于 2019-12-06 09:58:19
问题 I've run into a strange bug with MFMessageComposeViewController in iOS8, that is only reproducible within my own app. It's affecting the app right now in the App Store, built with the iOS7 SDK running on iOS8, as well with the iOS8 SDK in my own test devices (iPhone and iPad) The issue is that when I bring up the MFMessageComposeViewController, it shows me the controller without a text field or a Send button anymore. I haven't changed my code between iOS7 and iOS8, so not sure why this is

iOS 8 autorotate rotates images off the screen

倾然丶 夕夏残阳落幕 提交于 2019-12-06 09:31:00
So I recently heard word from my customers about a strange issue. The screen will go black on them when they try to rotate their screen. This appears to be an iOS 8 thing only since my latest release was just to add iOS 8 to the mix. From my viewcontroller: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // // There are 2 ways to support auto-rotation: // - The OpenGL / cocos2d way // - Faster, but doesn't rotate the UIKit objects // - The ViewController way // - A bit slower, but the UiKit objects are placed in the right place // #if GAME

Instantiate a NSManagedObject without saving it

穿精又带淫゛_ 提交于 2019-12-06 08:51:37
问题 I got a class like : @objc(User) class User: NSManagedObject { @NSManaged var id: String //MARK: - Initialize convenience init(id: String, context: NSManagedObjectContext?) { // Create the NSEntityDescription let entity = NSEntityDescription.entityForName("User", inManagedObjectContext: context!) // Super init the top init self.init(entity: entity!, insertIntoManagedObjectContext: context) // Init class variables self.id = id } } I create a new User in a ViewController : managedObjectContext