ios6

What does this warning mean: “setting the first responder view of the collection view but we don't know its type (cell/header/footer)”

╄→гoц情女王★ 提交于 2019-12-05 10:46:30
问题 I have a UICollectionView with a UITextView in each cell. When I tap on one of the text views and the keyboard comes up, I get this warning in the output panel: setting the first responder view of the collection view but we don't know its type (cell/header/footer) Text input works fine, though. However, I'd really like to know what this warning means before I use this code in production. 回答1: According to Apple, "you can safely ignore that". https://devforums.apple.com/message/717898#717898

How to support airplay in the background in iOS6

霸气de小男生 提交于 2019-12-05 10:43:55
My app should stream video's to an AppleTV via Airplay, even when the app is in the background. Under iOS5 it worked perfectly. In iOS6 it does not. Xcode gives me a deprecated warning on this line of code: moviePlayerViewController.moviePlayer.useApplicationAudioSession = NO; Is this the reason why my app isn't functioning correctly anymore. What is the equivalent of this piece of code in iOS6? Found the solution: this problem can be solved by setting the right AVAudioSessionCategory NSError *setCategoryError = nil; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback

IOS6 rotation issue

心不动则不痛 提交于 2019-12-05 10:43:21
I know you have to use the new rotation methods for IOS6, but it seems the method I've written doesn't work. I setted my plist file to allow all rotation but not portraitUpsideDown I then had the following in my appDelegate : self.navController = [[UINavigationController alloc] initWithRootViewController:self.viewController]; [self.window setRootViewController:navController]; //add nav controller to be the root view Then in my rootView, to push to another controller, I have: WebViewViewController *webController = [[JBWebViewViewController alloc] init]; webController.urlString = urlName; [self

Moving to iOS6 I get this linker error with almost all external packages

旧巷老猫 提交于 2019-12-05 10:12:56
"file was built for archive which is not the architecture being linked (armv7s)" do I need to wait for people to release new binaries or I have a way out, I get this for GoogleAnalytics Restkit ... EDIT: problem with Restkit solved with their latest commit, just pull from github, Yes, they will have to release binaries which are compiled for armv7s architecture to support the new iPhone 5 A6 processor. In the meantime, you can temporarily compile against only armv7 to continue development on iOS 6 on your current device until those other libraries are updated. Go to Target -> Build Settings ->

UITextView can not detect link & address in iOS 7

送分小仙女□ 提交于 2019-12-05 09:57:24
I have iOS application which supports iOS 6 as well as iOS 7. Now I am showing text in UITextView which contains email address & website urls. In iOS 6 , UITextView detects it correctly but in iOS 7 it doesn't detect when view gets loaded. But when I click on any link , email address it starts detecting all the link / urls. Is this a bug in iOS 7 or I am missing some settings specially for iOS 7 ? Below are the screenshots of app 1) In iOS 6+ when view loaded 2) In iOS 7 when view loaded 3) In iOS 7 when I tap on any link / email address 4) Here is the settings that I am doing in Interface

Why is AutoLayout not taking care of my UICollectionView

荒凉一梦 提交于 2019-12-05 09:46:37
I have built a very simple sample of an app (Source code on github ) using a UICollectionView . Everything is working fine, as long as the app is in portrait mode. When it is changed to landscape mode however, the content cell is not resized appropriately, and thus, nothing is displayed. I thought that all the necessary AutoLayout constraints are in place. I am aware that I can implement collectionView:layout:sizeForItemAtIndexPath: , but my goal is to use AutoLayout as much as possible (simply to understand AutoLayout better). What am I missing here? You can use autolayout to set the position

Open iOS6 Apple Maps app from a link in a UIWebView

╄→尐↘猪︶ㄣ 提交于 2019-12-05 09:18:19
If I display a link to a map in a webpage <a href="http://maps.apple.com/?q=Pricketts+Hill+Southampton+Hampshire+SO32+2JW&ll=50.913127,-1.191398">Location</a> it opens the native iOS6 Apple Maps app when clicked in the standard iPhone Safari browser. When I display the same webpage in a UIWebView inside my app and then click the link, my delegate method - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { is called, and the parameters are url=http://maps.apple.com/?q=Pricketts+Hill+Southampton+Hampshire

IOS 6, safari fullscreen webapp, home button

匆匆过客 提交于 2019-12-05 09:16:11
I'm developping a webapp (javascript) to put on the homescreen of the iPad to be able to run it in fullscreen mode. Everything is working but after a random while, the home button doesn't work anymore. But the app still continuing to run, and the is no bug at all. I still can run javascript functions in the console with safari on my mac, alert, prompt, and all of those stuff are working. but not window.close(); To quit the application I have to restart my device by pushing the switch off button and the home button. If anyone can help me to figure out what it is I would be very happy. The

iOS 6 view hierarchy nightmare

我的梦境 提交于 2019-12-05 08:32:59
I have an app in the app store with nearly 5-star rating, but when iOS 6 came out, some of the views in in the app's main view hierarchy started blinking. This happens on the app that was in the store (I removed it when iOS6 came out) as well as in the simulator. I've spent about 14 hours, trying 100 things, to debug this in Xcode, but can't get any traction on it. Subviews disappear and reappear like there's a gremlin randomly setting the visible property off and on for each of them up to 10 times per second, in between longer periods where everything is normal. The main interface is a dial

TWTweetComposeViewController deprecated in IOS6

廉价感情. 提交于 2019-12-05 08:29:33
问题 My code is working as expected just that I need to get rid of this warning message. TWTeetComposeViewController deprecated in IOS6. Any replacement for this built-in view controller in ios6? Here is my sample code. if ([TWTweetComposeViewController canSendTweet]) { // Initialize Tweet Compose View Controller TWTweetComposeViewController *vc = [[TWTweetComposeViewController alloc] init]; // Settin The Initial Text [vc setInitialText:@"This tweet was sent using the new Twitter framework