ios8

iOS 8 custom keyboard extension UIKeyboardType

℡╲_俬逩灬. 提交于 2019-12-22 08:22:52
问题 I'm building a iOS 8 custom keyboard and I'd like the change the layout of the keyboard based on the UIKeyboardType, however, reading the keyboard type in UIInputViewController is always 0. Any suggestions? Thanks in advance! - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"TextInputMode: %ld", self.textDocumentProxy.keyboardType); } 回答1: Get the keyboardType in InputView Delegate Methods Instead of ViewDidLoad . Because you can't get the keyboardType until The keyboard is fully presented

NSDocumentDirectory files disappear in ios

人盡茶涼 提交于 2019-12-22 08:16:13
问题 I want to save a mp4 video in my folder but when I open again the app, this file is nil. But when I save the file, I can open it, so it seems that it disappears from the folder. Save: NSData *videoData = [NSData dataWithContentsOfURL:exportUrl]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *tempPath = [documentsDirectory stringByAppendingFormat:@"/%@",videoName]; self.path

UIScrollView behavior is different in iOS8

旧街凉风 提交于 2019-12-22 08:15:24
问题 I have the following layout So it's basically a scroll view that occupies whole screen. Content size is set to triple-width and same height. Inside the scroll view - there is container view and three table views - one per page. Only middle table view is visible initially. This allows me to use scroll view horizontal scrolling to navigate between the tables and vertical scrolling inside the middle table. I know that Apple doesn't really recommend putting UITableView inside UIScrollView, but in

UITableViewAutomaticDimension not working on iOS 8

风格不统一 提交于 2019-12-22 05:36:10
问题 I was following this tutorial to make self sizing cells. I registered custom cell into table view and in the cell xib I gave every subview constraints manually. Please refer to the source code in GitHub Arranging 3 labels vertically in one cell's content view worked fine in iOS 9 but not in iOS 8 (both tested in device and simulator). In iOS 8 one cell does not have fitting height and not every label shows all it's full text. iOS 8 not fitting: iOS 9 as I expected: Any advice would be

Rotation issue with ios 8 for view which are added to windows

末鹿安然 提交于 2019-12-22 05:15:33
问题 I have created category for view rotation, And added views on controllers view as well as on window(for showing custom indicator). My code is working fine up to 7.X with xCode 5.X as well as xCode6-beta6. But is not proper with IOS 8 beta. Its seems like windows rotation is not working with ios 8 beta same like older ios. Can you please suggest me.... Thanks a lot in advance. My code is look like - (void)application:(UIApplication *)application willChangeStatusBarOrientation:

Rendering mode set to Template for vector pdf in image catalogue, but UIImageView wont tint the image in a custom cell

喜你入骨 提交于 2019-12-22 04:54:10
问题 I have migrated all my image files to the asset catalogue. All of them are pdf vectors of size 1x. They are set to render as a Template. They show up fine everywhere in size and in color. But there is this one custom TableView Cell from a xib that I has 6 UIImageView s linking to 6 of these images from the catalogue. Somehow they don't respect the tint color, neither default nor custom. Tried changing them programmatically but didn't work either. These same images show up fine in another

Navigation bar disappears when typing in UISearchController text field

家住魔仙堡 提交于 2019-12-22 04:32:49
问题 I'm trying to figure out why my whole navigation bar disappears when I start typing in the UISearchController.searchBar It loads properly and animates properly, but I lose the active NavBar when I start typing. Here's the code to load the searchController from viewDidLoad: UITableViewController *searchResultsController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; searchResultsController.tableView.dataSource = self; searchResultsController.tableView.delegate = self;

Creating Launch Screen.xib for iOS8 ( … iOS11, Swift 4 and LaunchScreen.storyboard )

倾然丶 夕夏残阳落幕 提交于 2019-12-22 04:19:48
问题 I've just found out that in order to be able to have the description for your app in the app store say "This app is optimized for iPhone 6, and iPhone 6 Plus." you need to use a launch XIB or storyboard file for your launch images (per [Apple][1]). So, I've created a new Launch Screen xib and now I'm a little but since I usually do everything in code and don't use interface builder. I've deleted the default label that is inserted and dropped a UIImageView into the view. Now I'm wondering how

willTransitionToTraitCollection not get called, why?

こ雲淡風輕ζ 提交于 2019-12-22 04:05:22
问题 I am trying to replace didRotateFromInterfaceOrientation with willTransitionToTraitCollection - in a UIViewController subclass - as doc says, but method is not get called when I am rotating device. Why? 回答1: If you're testing this on iPad it has regular trait collections for vertical and horizontal class for both orientations, thus it will not call this method when orientation changed. 来源: https://stackoverflow.com/questions/25634085/willtransitiontotraitcollection-not-get-called-why

Using the device simulator for iOS 8 with Xcode 7

旧街凉风 提交于 2019-12-22 03:50:43
问题 I thinking about port my App to Swift 2 and Xcode 7. But the device simulator only targets iOS 9 and I see no way to download iOS 8. I have parallel Xcode 6.3 installed. Is there any way to test and debug my app under iOS 8 with the device simulator? 回答1: Xcode release note says below thing, Simulator Xcode 7.0 beta does not support iOS 8.4 and earlier simulator runtimes. (20699475) Refer this link for more info. 回答2: You can download older versions of iOS via Xcode. Open Xcode -> Preferences