ios8

Missing keyboard on iOS8 simulator?

眉间皱痕 提交于 2019-12-20 17:33:05
问题 I'm checking my app against iOS8 in the simulator and one thing that puzzles me is that when I tap on a UITextField or UITextView the keyboard doesn't appear on the screen! I can still enter text with my hardware keyboard. Also, if the input element has a inputAccessoryView, that view is shown on the bottom of the screen. So everything works as expected except that the keyboard is not appearing on the screen. This is valid for all input elements throughout the app. I don't use the new feature

Change Action sheet popover arrow in iOS8

試著忘記壹切 提交于 2019-12-20 17:26:33
问题 i'm using UIAlertController . But on iPad with iOS 8, actionSheet show with popover arrow. Any ideas to hide that arrow? Here is my code: UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"this is alert controller" message:@"yeah" preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action") style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { NSLog(@

Can't change search bar tint color to be transparent in iOS 8

两盒软妹~` 提交于 2019-12-20 16:23:06
问题 Upgraded from Xcode 5 to 6 and now my search bar tint is black. Tried to change it through storyboard right pane > "Bar Tint" to clear color, but it's still black. Also tried programmatically: [self.searchBar setTintColor:[UIColor clearColor]]; Still black :( Any ideas? 回答1: The tintColor property on search bars, much like UINavigationBar, changes the color of the buttons, as well as changes the color of the blinking cursor, not the actual search bar background. What you want to use is the

iOS8 MKMapView Framebuffer error during rotation when autoresize is applied

纵饮孤独 提交于 2019-12-20 14:43:32
问题 #import "AppDelegate.h" #import <MapKit/MapKit.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { [self setWindow:[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]]; [self.window makeKeyAndVisible]; UIViewController *vc = [[UIViewController alloc] init]; self.window.rootViewController = vc; vc.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

iOS8 MKMapView Framebuffer error during rotation when autoresize is applied

送分小仙女□ 提交于 2019-12-20 14:43:10
问题 #import "AppDelegate.h" #import <MapKit/MapKit.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { [self setWindow:[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]]; [self.window makeKeyAndVisible]; UIViewController *vc = [[UIViewController alloc] init]; self.window.rootViewController = vc; vc.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

iOS 8: Presenting a modal view controller in portrait causes resize of the navigation bar of the underlying landscape navigation controller

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 12:43:24
问题 On iOS 8 I have a strange behavior regarding the navigation bar and orientation changes. I have a navigation controller which reports a supported interface orientation UIInterfaceOrientationMaskLandscapeRight . The navigation bar has the expected height for landscape orientation (sadly I am not entitled to post screenshots). Then I initiate a modal presentation of a view controller that only supports UIInterfaceOrientationMaskPortrait . When the presentation animation starts, it seems that

How to set up a minimal CKSubscription?

让人想犯罪 __ 提交于 2019-12-20 12:38:07
问题 I want to set up a simple CKSubscription that notifies me a recordType was created, how? 回答1: After experimenting a while this is how to setup a minimal CKSubscription. You have to test it on Device, push notification does not work on simulator. You can add record in Dashboard, that will trigger push notification too. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { application.registerUserNotificationSettings

How to detect from iOS keyboard extension that a textfield is cleared via actions like hitting “Send” in iMessage?

爱⌒轻易说出口 提交于 2019-12-20 12:29:09
问题 In my iOS keyboard app, I currently have a text suggestions bar much like the default iOS 8 Keyboard's suggestion bar. I would like to clear all text on the suggestion bar whenever the user does something that clears the text field (for example, when someone hits " Send " on iMessage or Whatsapp,). As hitting "Send" is not a keystroke , I was wondering if there is way to detect from the keyboard when a textfield is cleared. I have tried detecting empty text "" or new line "\n" , but so far

For an iPhone only, iOS 7+ app, can we include only @3x images?

跟風遠走 提交于 2019-12-20 12:23:51
问题 In an effort to reduce bundle size, is it possible (and a good idea) to only add @3x images? To clarify, I'm not referring to the app icon, launch image, etc. But images that are internal to the app, like UIButton background images. I saw Image resolution for new iPhone 6 and 6+, @3x support added?, but it didn't answer my question. 回答1: Yes you can, but you shouldn't. If you only add @3x images it will both reduce your bundle size and be compatible with all screen densities. However, I do

How to add subview inside main view in Swift [closed]

落爺英雄遲暮 提交于 2019-12-20 12:10:21
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I need advice how to proceed. How to slightly dim the main view and display some busy indicator, for the duration of of some action, and then remove the dimming? In Swift language. Thanks! UPD: In Objective-C I use earlier something like this: UIView *dimView = [[UIView alloc]