ios6

Ios 6 simulator stuck on splash screen

假装没事ソ 提交于 2019-12-03 17:04:56
问题 I am using Mac os 10.8.2, and Xcode 4.5.2, when i try to run my app in ios 5/5.1 simulator its working fine, but when i try to run the App in ios 6 simulator it get stuck with blank screen. can anybody let me know what the solution for my problem? 回答1: I had this issue a while ago. Here's what helped me: In your iOS simulator, reset content and settings quit your iOS simulator Quit and reopen your Xcode project in Xcode, click Product > Edit Scheme. Change debugger from LLDB to GDB (or none)

When recording using UIAutomation on a device, it hangs on 'Starting Capture…' . Works fine on Simulator

ε祈祈猫儿з 提交于 2019-12-03 17:04:24
Has anyone else had this problem? I'm new to UIAutomation. Am using Xcode4.5, trying to record commands on my iPad 3 running ios6. When I click the record button, it just hangs on 'Starting Capture...'. I had this problem initially when trying to run on the simulator and was able to solve it using. sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer. Can't seem to get it working on my device. Do the accessibility settings need to be set a certain way? I have multi-tasking turned on. When I try to run a script, nothing happens. No errors or anything. Totally stumped. Make sure

how to make #key and @key clickable in IOS7

谁都会走 提交于 2019-12-03 17:01:09
Anyone knows how I can make the #KEY and @NAME clickable in the text of comments in IOS7 (the same way that instagram does it for example)? i am trying to use NSMutableAttributedString but I'm not sure how to detect click event, in the image below clicking @Username should take the user to the profile of the user Looking at the UITextViewDelegate protocol , there is a new method in iOS7: textView:shouldInteractWithURL:inRange: . You didn't share any code, but it is safe to assume you have an attributedString and a range representing the area you turned blue. I'll also assume you can extract

How to rotate a view in controller that is not allowed to rotate its interface?

筅森魡賤 提交于 2019-12-03 16:57:32
Help me to solve the task - I have a viewController that is not allowed to rotate its interface: - (BOOL)shouldAutorotate { return NO; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } But I need to rotate alertView which appears in this controller! So if user rotates the device the alertView should follow the rotation and the main interface stands still. I've tried to subscribe to notification: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceRotated:) name:UIDeviceOrientationDidChangeNotification object:nil]; But in

UIPopoverController orientation crash in iOS 6 [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-12-03 16:49:57
问题 This question already has answers here : Crash on presenting UIImagePickerController under iOS 6.0 (5 answers) Closed 5 years ago . My current program only support landscape orientation. In iOS 6, it crash on UIPopoverController . 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES' I enable all orientation for project , it's working well. However, I need to change a lot for all of

iOS 6 Custom URL Scheme Launch Images wrong

微笑、不失礼 提交于 2019-12-03 16:40:17
I have implemented custom URL schemes in my application. Also I have different names for the splash image using the UILaunchImageFile key in the info.plist. The documentations says: If your app supports one or more custom URL schemes, it can also provide a custom launch image for each URL scheme. When the system launches your app to handle a URL, it displays the launch image associated with the scheme of the given URL. In this case, the format for your launch image filenames are as follows: <basename>-<url_scheme><scale_modifier><device_modifier>.png The modifier is a string representing the

Why does my Cordova WebView have an extra 20px of scrolling?

这一生的挚爱 提交于 2019-12-03 16:30:23
问题 I am building a Cordova app, and I'm testing it on my iOS 6 device (iPod Touch w/ iOS 6.1.6). For some reason, the WebView is scrollable with an extra 20px, seemingly making up for the 20px status bar at the top of the screen. This sometimes causes the scrollable WebView to take focus, essentially causing "nothing" to scroll in the eyes of the user, rather than allowing scrollable div s in my app to scroll. I have tried numerous fixes pertaining to config.xml changes, plugins, etc, but

UICollectionView with variable cell sizes

妖精的绣舞 提交于 2019-12-03 16:09:27
I'm struggling a little bit with the size for cells in UICollectionView. In android, you can easily "wrap" the size of the cell. Just like in iOS, you have a function call 'GetCell' and you decide how big it will be. The difference in iOS is that in the "getCell" function (of UICollectionViewController) it seems you can't choose the size of the cell (or the contentview). If I change the size, it will ignore it and use anyway the general 'ItemSize' of the CollectionView (which is the same for all cells). This sometimes results in Views which are not very beautiful. For example, if I have a

NavigationBar setShadowImage not always working

别说谁变了你拦得住时间么 提交于 2019-12-03 15:41:47
I'm trying to set a custom shadow image for the navigation bar in my table views, but it's only showing in some views. I've created a super class to set the styles for my table views. - (void)viewDidLoad { [super viewDidLoad]; // Set navigation bar background [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navigationbarbackground.png"] forBarMetrics:UIBarMetricsDefault]; // Set navigation bar shadow imag [self.navigationController.navigationBar setShadowImage:[UIImage imageNamed:@"navigationbarshadow.png"]]; In the view I see at starting my app, no shadow is

iOS: disable UI mirroring in XIB

若如初见. 提交于 2019-12-03 15:39:22
in iOS 6 there's a new "feature" that mirrors the UI elements in the xib file if the user is on right-to-left locale (hebrew, arabic). ( http://developer.apple.com/library/ios/#documentation/miscellaneous/conceptual/iphoneostechoverview/iPhoneOSTechnologies/iPhoneOSTechnologies.html ) It completely messes up my interface. Is there a way to disable it without disabling auto-layout? Horizontal constraints have the "Direction" option in Interface Builder. By default it's set to "Leading to Trailing" which causes the mirroring. You can set it to "Left to Right" to disable the mirroring. Note,