ios7

MPMoviePlayerController error _itemFailedToPlayToEnd while playing youtube video iOS 7

一个人想着一个人 提交于 2019-12-18 15:12:50
问题 I've seen this mentioned a few places around the web but have yet to find answer anywhere. I am using ALMovieplayercontroller library. Everything works fine but when i am trying to play Youtube video it gives me error. _itemFailedToPlayToEnd: { kind = 1; new = 2; old = 0; } EDIT - (void)setContentURL:(NSURL *)contentURL { self.movieSourceType = MPMovieSourceTypeStreaming; [super setContentURL:contentURL]; [[NSNotificationCenter defaultCenter] postNotificationName

IOS7 Status bar change to black after search is active

随声附和 提交于 2019-12-18 14:56:04
问题 I'm using UISearchBar as header of UITableView. UISearchBar style is UISearchBarStyleMinimal. And when search is active, status bar change to black. How to fix that? Before search is active Search is active 回答1: you just need to do this: self.navigationController.view.backgroundColor = [UIColor lightGrayColor]; 来源: https://stackoverflow.com/questions/19129540/ios7-status-bar-change-to-black-after-search-is-active

Modal status bar and navigation bar text colors from UIActivityViewControllers in iOS 7

安稳与你 提交于 2019-12-18 14:49:32
问题 When I'm using a UIActivityViewController , after the user chooses an activity (such as Mail or Message), I can not change the text color for the status bar nor the text/tint color of the Cancel and Send navigation bar buttons. For the bar buttons, in the AppDelegate I've tried using: [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; And nothing happens. However I am able to set the navigation bar title with this: [[UINavigationBar appearance] setTitleTextAttributes:

Fixed persistent header and scroll to focussed input fields

不想你离开。 提交于 2019-12-18 14:10:27
问题 QUESTION: Based on the given examples for homescreen web apps in iOS7 Safari, how can I achieve both a fixed persistent header that never scrolls out of view, and form input fields that scroll into view when tapped? The two examples have one difference, one has height=device-height in the viewport, the other doesn't. Without device-height <meta id="viewport" name="viewport" content="user-scalable=no, initial-scale=1, minimum-scale=1" /> Demo: http://run.plnkr.co/plunks/SU8Csk/ Edit Link: http

iOS7 Xcode utility app - UINavigationBar on Flipsideviewcontroller not spaced properly?

会有一股神秘感。 提交于 2019-12-18 13:50:52
问题 I have this issue, where as standard the flipsideviewcontroller UINavigationBar looks like this: Anybody have any ideas on how to move the UINavigationBar either down, or to stop the ugliness of it all? 回答1: It's tricky. :) You need to set a delegate for the UINavigationBar - this will probably be the FlipsideViewController. You can do this in the storyboard, or in code - for example, if you have an outlet to the navigation bar: -(void)viewDidLoad { [super viewDidLoad]; self.navigationBar

Core Data Design - How to have both app data and user data?

﹥>﹥吖頭↗ 提交于 2019-12-18 13:44:06
问题 I have a situation where I have a base set of information that ships with my app. The user can add or edit this information. But from time to time, I need to be able to update the base data. I don't want to touch user changes/additions. I've looked at this question, but the analogies used are a bit foreign. This must be a common issue, and I would appreciate hearing practices and experiences with this type of co-mingled data sets. I was thinking of setting a flag for each record, when the

Core Data Design - How to have both app data and user data?

不羁岁月 提交于 2019-12-18 13:43:32
问题 I have a situation where I have a base set of information that ships with my app. The user can add or edit this information. But from time to time, I need to be able to update the base data. I don't want to touch user changes/additions. I've looked at this question, but the analogies used are a bit foreign. This must be a common issue, and I would appreciate hearing practices and experiences with this type of co-mingled data sets. I was thinking of setting a flag for each record, when the

How does instagram and vine iOS apps play videos inline? [closed]

拜拜、爱过 提交于 2019-12-18 13:27:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Without opening the fullscreen video player? Are they using a webview? What is the format of the video? 回答1: I inspected Instagram app using Reveal and looks like they use an AVPlayer , which makes them able to customize it more than if they were using an UIWebView or MPMoviePlayerController . 回答2: use/try below

Possible way to detect sim card detection in ios?

前提是你 提交于 2019-12-18 13:23:03
问题 I have a iphone app that has the capability to send messages. I want to alert user when sim card is not available in iphone. So i tried below three function to check sim card availabilty Class messageClass = (NSClassFromString(@"MFMessageComposeViewController")); if([messageClass canSendText]){ // Sim available NSLog(@"Sim available"); } else{ //Sim not available NSLog(@"Sim not available"); } if([MFMessageComposeViewController canSendText]){ // Sim available NSLog(@"Sim available"); } else{

Extend default interactivePopGestureRecognizer beyond screen edge?

陌路散爱 提交于 2019-12-18 13:20:04
问题 I have a UIViewController that gets pushed onto a navigation stack. I'd like to extend the standard iOS7 interactive pan gesture to pop this view controller beyond the default UIRectEdgeLeft boundaries, so that users can initiate an interactive back action by panning from anywhere on the view. I've tried rolling my own interactive view controller transition, but it's a lot of hassle to fully replicate the nice parallax handling of the default interactivePopGestureRecognizer . For example, the