ios6

Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6

好久不见. 提交于 2019-12-20 16:25:51
问题 This problem comes when I build an app targeting iOS 5 or 6, but run it on iOS 7. If I have a controller in a navigationController that is a part of a tabBarController, and I do the following: controller.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:testController animated:YES]; A strange vertical positioning animation occurs. I would instead like the new controller (with the bottom bar hidden) to push or pop on the navigation controller pushing the tab bar out

Jailcoder with SDK 6.0

主宰稳场 提交于 2019-12-20 15:36:06
问题 I am new to iOS . I was installing latest XCode with SDK 6.0 in it. I have been successfully testing my app developed using SDK 6.0 on simulator. Now i want to test it on real device without developer program account. To do that, i use Jailcoder . I have an iPhone 3GS , with AppSync 5.0+ installed. I have tried "Quick XCode Patch" and "Patch My Project" . However i still get signing error. It said, CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.0' Seems

strange behaviour with cache.manifest / offline usage of web app saved to home-screen on ipad ios6

[亡魂溺海] 提交于 2019-12-20 15:23:42
问题 I just discovered some strange behaviour on iPad with the new iOS 6. I'm testing a web app for offline usage. The web app is no more than a static website with a cache manifest, so no special frameworks like sencha touch or tools like phnoegap are used. Just HTML, CSS and JavaScript and a cache.manifest. The App worked fine before: I could save the website to the home screen. When I opened it from there, all the data would be downloaded for caching. At the end of the download the pop-up would

AVFoundation audio processing using AVPlayer's MTAudioProcessingTap with remote URLs

被刻印的时光 ゝ 提交于 2019-12-20 14:18:06
问题 There is precious little documentation on AVAudioMix and MTAudioProcessingTap, which allow processing to be applied to the audio tracks (PCM access) of media assets in AVFoundation (on iOS). This article and a brief mention in a WWDC 2012 session is all I have found. I have got the setup described here working for local media files but it doesn't seem to work with remote files (namely HLS streaming URLs). The only indication that this is expected is the note at the end of this Technical Q&A:

how to disable auto layout by default for xcode 4.5?

时光毁灭记忆、已成空白 提交于 2019-12-20 14:17:32
问题 A question here: Xcode 4.5 corrupting XIBs? illustrates the problem and solution for xcode 4.5 creating nib files that can not run on ios5. Does anyone have a solution to prevent the auto layout checkbox from being defaulted to on? I'm worried that in the process of development, I will forget to unchecked that box. 回答1: There's a way, but it's kinda convoluted and, I might add, not recommended. You can open your template files located in: /Applications/Xcode.app/Contents/Developer/Platforms

how to disable auto layout by default for xcode 4.5?

假装没事ソ 提交于 2019-12-20 14:17:10
问题 A question here: Xcode 4.5 corrupting XIBs? illustrates the problem and solution for xcode 4.5 creating nib files that can not run on ios5. Does anyone have a solution to prevent the auto layout checkbox from being defaulted to on? I'm worried that in the process of development, I will forget to unchecked that box. 回答1: There's a way, but it's kinda convoluted and, I might add, not recommended. You can open your template files located in: /Applications/Xcode.app/Contents/Developer/Platforms

iOS: UIPasteboard setImage: fails on iOS6 and/or Xcode 4.5

非 Y 不嫁゛ 提交于 2019-12-20 14:10:44
问题 Update: Added bug 12408800 on Apple's site. I am copying some one or multiple UIImage to the UIPasteboard, and it's been working like gangbusters.. until my phone upgraded to iOS 6. Xcode 4.5 with iOS 5.1 - OK Xcode 4.4 with iOS 6.0 - Also OK (according to this post) Xcode 4.5 with iOS 6.0 - FAIL (also tested distributing via TestFlight, for what it's worth - still fails) Here's my code (super basic, etc): // add image to clipboard UIImage *image = [[UIImage imageNamed:@"testimage"]; [

iOS 6 issue Convert MPMediaItem to NSData

一笑奈何 提交于 2019-12-20 10:48:13
问题 i had tried the below code. -(void)mediaItemToData : (MPMediaItem * ) curItem { NSURL *url = [curItem valueForProperty: MPMediaItemPropertyAssetURL]; AVURLAsset *songAsset = [AVURLAsset URLAssetWithURL: url options:nil]; AVAssetExportSession *exporter = [[AVAssetExportSession alloc] initWithAsset: songAsset presetName:AVAssetExportPresetPassthrough]; exporter.outputFileType = @"public.mpeg-4"; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

iOS6 - Is there a way to clear cached ajax POST requests for webapp added to home screen?

点点圈 提交于 2019-12-20 10:42:24
问题 iOS6 ajax POST request caching is becoming a huge problem for our webApp. Most of our users have added the app to the home screen. Ever since the upgrade, most of the POST requests to the backend are not working and data is stale from over 6 days ago and counting. We are aware of two workarounds to resolve this, one is to change every POST request so that it's different by adding a timestamp or some random input to it, and the second is to disable caching on the webserver. Both workarounds

How to find the substring between two string? [closed]

廉价感情. 提交于 2019-12-20 10:28:12
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I have a string "hi how are... you" I want to find the Sub-string after how and before you.. How to do this in objective c? 回答1: Find the range of the