ios8

Unavailable message in TestFlight Beta

Deadly 提交于 2019-12-10 15:29:56
问题 I am seeing "Unavailable" message in TestFLight Beta App in iOS8. Please find the attached screenshot, please tell me how to fix this issue. 回答1: I get this all the time. In iTunes Connect, remove yourself as a tester, save, add yourself back, save, then open the beta build through the new invitation email you receive. 回答2: Make sure that the same version (i.e 2.4.1) your'e testing was not approved to sale. When a version is approved for sale by Apple, it becomes unavailable for testing.

iOS8 background fetch issue

孤人 提交于 2019-12-10 14:57:54
问题 I have used background fetch in pre ios8 without a problem. But in ios8 when i simulate background fetch on my phone i first get an error that i do not have permission to play sound therefore i do not get any local notifications. Then upon opening the app, the app crashes and i get this wierd error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'this request has been neutered - you can't call -sendResponse: twice nor after encoding it' 回答1: It is

Change title and message font of alert using UIAlertController in Swift

不问归期 提交于 2019-12-10 14:53:59
问题 I am trying to change the title and message font for an alert shown using UIAlertController I am trying to do using an NSAttributedStirng, but it gives compiler error that a NSAttributed string cannot be taken instead of Stirng I tried something similar to this var title_attrs = [NSFontAttributeName : CustomFonts.HELVETICA_NEUE_MEDIUM_16] var msg_attrs = [NSFontAttributeName : CustomFonts.HELVETICA_NEUE_REGULAR_14] var title = NSMutableAttributedString(string:"Done", attributes:title_attrs)

ios8 UITableView scrollToRowAtIndexPath inaccurate with auto sizing cells

假如想象 提交于 2019-12-10 14:12:56
问题 When I try to scroll all the way to the bottom of a table view when my view first appears, it doesn't scroll to the correct bottom cell. It's somewhere close to the end but not quite. If the method is called again later, it then scrolls to the bottom. For now my solution was to scroll twice, and it only works if there's a delay on the second one. I'm wondering if this is a bug in iOS 8 or if there's anything I can actually do the proper way. NSIndexPath* path = [NSIndexPath indexPathForRow:

Swift generic type cast

非 Y 不嫁゛ 提交于 2019-12-10 14:09:06
问题 I have a generic class where I have an array of generic types. No I want to do some operations based on the class in the array. I have 2 classes: Person and House (no Inheritance). But this code doesn't work: let allValues = [T]() if allValues[0] is Person { let values = (allValues as [Person]) } But this doesn't work as T is not identical to 'Person' . What do I have to do? Thanks for any help. 回答1: I agree with Oliver Borchert and Airspeed Velocity : this kind of problem should be addressed

Header view is not display after search iOS8 + XCode6

为君一笑 提交于 2019-12-10 13:45:30
问题 I have working application for iOS7 and below I used UISearchDisplayController for search in table. Problem : After search header view is not display in iOS8. as display in below images. Before search : After search : I tried using UISearchController but also have same problem i used this code link I add below code in TPSMastreViewController.m - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *v = [[UIView alloc] init]; v.backgroundColor =

How to hide the status bar programmatically in iOS 8 [duplicate]

左心房为你撑大大i 提交于 2019-12-10 13:44:48
问题 This question already has answers here : How to hide iOS status bar (21 answers) Closed 4 years ago . Just like the question says, I need to hide status + navigation bar when user taps. So far, navigation bar was easy. Cann't find a way to do the same with status bar. By the way, tried UIApplication.sharedApplication().statusBarHidden = true but no luck yet 回答1: You should add this key/value pair to your project's Info.plist. <key>UIViewControllerBasedStatusBarAppearance</key> <false/> After

iOS 8 Today Extension: Is it possible to add editable text field?

删除回忆录丶 提交于 2019-12-10 13:38:10
问题 I am trying to create a simple Today Extension. I was able to add a label wherein the value can be updated via the main app. Now, I am exploring the possibility to update the value in main app via the extension. However, when I tried to add a textfield, I cannot input anything. Is this a limitation of the extension? If not, can you please guide me how to accomplish this? Thank you very much! 回答1: Unfortunately, it is a limitation. It says in Apple's extension programming guide: Because user

iPhone 6 simulator, hide keyboard issue

独自空忆成欢 提交于 2019-12-10 13:36:56
问题 Does the iPhone 6 have some new way (off-screen/hard button) to reopen a hidden soft keyboard? I don't have a physical device to test with, but I'm seeing something new in the iPhone 6 simulator that I don't see in iPad or iPhone 5. The iPhone 6, in landscape view, now has a "hide keyboard" button, like only iPad has had before. Here are the different behaviors I'm seeing, and I'm hoping it is not a new issue I need to design my apps around. Initial steps are the same in iPad and iPhone 6

UIAlertController's popover is deformed

倖福魔咒の 提交于 2019-12-10 13:35:18
问题 I'm presenting a list of options to the user using an UIAlertController from a UIToolbar with a preferred style of action sheet. When presented, the popover's arrow is cut off and its corners are rounded with two different radii: The code I'm using to present it is straight from the documentation, as far as I see it: UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"" message:@"" preferredStyle:UIAlertControllerStyleActionSheet]; NSArray *actions = @[