ios-simulator

can't remove splash screen image in iOS Simulator

℡╲_俬逩灬. 提交于 2019-12-01 01:15:59
问题 Hey guys, I'm testing my app on SDK iOS Simulator to make sure it runs properly. First of all, I decided to remove a splash screen image because I don't think I want one. When I ran my app again, it's showing the splash image again, thought I was a bit confused there, so I deleted the image from references and removed the image from the folder, to the trash. WHen I ran my ap again, it's still showing the same splash screen image again! I have no clue what's going on with my project now that

iPad large NSArray - initWithObjects vs. ArrayWithObjects

末鹿安然 提交于 2019-12-01 01:08:55
can anyone clear this up for me ? I am building an iPad App that has a TableViewController that is supposed to show something between 1000 and 2000 strings. I have those NSStrings in a Singleton. In the init Method of the Singleton I initialize an Array that holds all the data ( does not have to be the final way to do it - was just a quick copy and paste for testing ) I did an self.someArray = [[NSArray alloc]initWithObjects: followed by the large number of strings, followed by nil. that worked fine in the simulator - but crashed with bad access on the iPad right on Application startup If I

iOS 6.1 simulator on OSX 10.10 Yosemite

こ雲淡風輕ζ 提交于 2019-12-01 00:52:16
问题 I am developing an application based on iOS 6.1, and after upgrading to OSX Yosemite can not run the simulator. I've been reading on stackoverflow, and some people say that OSX 10.10 no longer supports iOS 6, only 7 and 8. I chose to develop on iOS 6 because of the large amount of users that still use this version. I've seen this topic In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator? But I would like an opinion on the path to be taken. I return to OSX 10.9 Maverick, or

Can we use UI Automation tools with the iPhone Simulator?

☆樱花仙子☆ 提交于 2019-11-30 23:42:01
I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I try to run it: Unexpected error in -[UIATarget_0x5a1e3b0 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437, Has anyone gotten this to work? If you have trouble getting the correct target, running your project

Is it possible to get the 'live' current location with an iOS Simulator?

拥有回忆 提交于 2019-11-30 23:31:48
I'm trying to test out my location code with an iOS Simulator. How can I make the iOS simulator use my -real- current location? So for example, i'm on a train using my MBP connected to the interwebs via my iPhone teathering. I then run the iOS Simulator and double click on my App. Now .. as the train moves, I wish to see my lat/long coords change in my labels / console output. I'm not after code (i've done all that)... just not sure how to tell the iOS Simulator to use the real live location stuff. I know the iOS simulator has the Debug->Location-> stuff -which is what i've been using so far.

Xcode Instruments error: “Allocations tracking library was not loaded in time”

廉价感情. 提交于 2019-11-30 23:20:15
问题 Problem started when installed Xcode5 bundle. I'm using Mavericks - not sure if that is relevant. Cannot profile allocations in simulator. Instruments would load and start app in the simulators but instead of allocations log I see this: Did anyone face this problem? 回答1: Also got this error: If the simulator was set to "iPhone" (iOS6), and active scheme was iOS7, then I got this error as well. Solution: So either set your active scheme to an iOS6 device, or change hardware in the simulator to

Cannot scroll in UIWebView in iOS

一世执手 提交于 2019-11-30 23:20:01
问题 I created a webview programmatically and I am unable to enable scrolling in this view. How do I enable scrolling? UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,40, 325, 1000)]; webView.contentMode = UIViewContentModeScaleAspectFit; [webView setBackgroundColor:[UIColor clearColor]]; [webView loadHTMLString:html baseURL:nil]; [self.view insertSubview:webView atIndex:0]; Thanks In Advance ! 回答1: To enable scrolling, webview.scrollView.scrollEnabled = TRUE; and instead of

Xcode6 can't run any app in simulator ( Domain = NSPOSIXErrorDomain, Code = 3 )

时光毁灭记忆、已成空白 提交于 2019-11-30 22:45:11
问题 No app can run in my simulator, although building is good. Error messsage is below: Unable to run app in Simulator An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3) 回答1: In my case, I tried to run the app on a iPhone 6 simulator when I got this error. Quitted the simulator only and re-ran the app on iPhone 5s (8.1) - it worked fine. After a while I changed the target back to iPhone 6 (without quitting it), and ran the app against it - no error shown. 回答2: As

Seeing a guid as part of the simulator choices

∥☆過路亽.° 提交于 2019-11-30 22:30:54
When i got to choose a simulator to run my app on in Xcode 6.1.1. I see a guid next to the simulator name. For example the choices I see are: iPad 2 (062B5AD7-65CD-4079-B06E-182A6D110DB4) iPAD 2 (49DA9317-4493-4664-9c25-172A97CEFA41) iPad 2 (FCF2A5C#-9460-4C22-A948-3633C876FC35) How do i get rid of these guids? The problem is that you've created too many iPad 2 simulators (and similarly for the others that look that same way). The interface needs some way to distinguish them so it adds their UID. Just delete simulators in the Window > Devices interface until you've only got one of each desired

Why isn't UIAlertView Showing?

▼魔方 西西 提交于 2019-11-30 22:00:59
For some reason screen gets dark and freezes, alert is not shown... can someone please help? Thanks in advance! } else { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello!" message:@"Hello!" delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil]; [alert show]; [alert release]; } You are probably calling show from a background thread, call it on the main thread like this: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello!" message:@"Hello!" delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil]; [alert performSelectorOnMainThread:@selector(show)