ios-simulator

xcode Simulator delays the displaying of a page

岁酱吖の 提交于 2019-12-02 10:25:54
Upgraded to XCode 9.2 and now my app behaves badly on the ios simulator. It still runs ok when deployed to a physical device. The problem is that pages are taking from 10secs to 1 minute to refresh. eg after a tableview.reloadDate(). I am certain the reloading of the data is occurring immediately, it just that the page isn't being displayed until after a long delay Interestingly if I tap the simulator screen the response is as if I tapped the refreshed (but as yet undisplayed) page. I don't think this is an animation issue, I have made sure that in the simulator Debug menu that 'Slow

Is it possible to access a photo's geotag metadata from within the simulator?

一个人想着一个人 提交于 2019-12-02 10:18:58
问题 I've written an app that retrieves a photo's GPS metadata, and it works on my iPhone but doesn't in the simulator. If I drag a photo containing geotags onto the simulator, it gets placed into the photo library. Then, my app issues this code: ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; NSDictionary *metadata = [assetRepresentation metadata]; and metadata contains all sorts of items, but not GPS. Is there some trick to getting the simulator to recognize GPS

Attempting to delete an image from Xcode 4

*爱你&永不变心* 提交于 2019-12-02 09:41:11
I'm going nuts trying to do something very simple. I have a number of images in my app that are displayed at certain times. In the course of playing around with retina images, I delete the image files from my app. Except that when I ran the app in the Simulator, the images are still there. I checked the project folder in Finder, and the images are definitely gone. I've cleaned and rebuilt the app, but they're still displaying. If I build the app for the iPhone, they're not displayed. So how do I clean it up for the Simulator? Thanks for any pointers Try just deleting it from the simulator as

Generating alert to User when didReceiveMemoryWarning is called

徘徊边缘 提交于 2019-12-02 09:40:47
I've seen some apps that generate a warning when low memory is detected. I tried to do this in my app but ran into a problem. Using the simulator to simulate a memory warning, the alert generated pops up twice before I can hit "ok" and pops up 9 more times after that times before it finally goes away. Is it a bad idea to generate an alert when didReceiveMemoryWarning is called? If not, is there a better way to do this than what I have below? - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. ... UIAlertView *alert = [

iOS8 - Simulator - How to get Locations simulated

眉间皱痕 提交于 2019-12-02 09:28:58
My App tracks your location. With iOS8 I had to change how it was starting location services. I got this working with [self.locationManager requestAlwaysAuthorization]; and adding NSLocationAlwaysUsageDescription to the plist file. The app now gets your location when run on a device, but not in the simulator. Any clues on how to get this to work in the simulator? It used to!!! In the iOS Simulator, select Debug > Location, then choose your location. I decided to post this in case anyone else had the same issue. I got the simulator to respond to location changes again by adding

Xcode 6 GM Seed - iPhone 6 simulator does not show the home button

杀马特。学长 韩版系。学妹 提交于 2019-12-02 09:02:32
I am creating a game in Xcode-6-GM-Seed and am having an issue that the home button is not showing up in the simulator. I need to be able to press the home button to be able to quickly delete the app from the phone but am not seeing the home button. How do I get around this? Is there some sort of command to use or do I need to do it programmatically until they add the home button? Is there another way to delete the app and it's content? Use Command + Shift + H for pressing Home button. You can also choose "Reset Content and Settings" to erase the App. As mentioned above, shift+command+h is how

save videos in iphone simulator & upload it to the web services

非 Y 不嫁゛ 提交于 2019-12-02 08:53:33
问题 I just want to know that how I can save the videos to the iphone simulator & how I can upload it to the web services? Thanks. vpc=[[UIImagePickerController alloc] init]; vpc.delegate=self; vpc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; vpc.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:vpc.sourceType]; vpc.allowsEditing = NO; vpc.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie]; [self presentModalViewController:vpc animated:YES]; i am

Xcode5 ( 3.5\" screen to 4 inch )

烈酒焚心 提交于 2019-12-02 08:29:23
Recently I had upgraded to Xcode 5 and opened a project that had been created in Xcode 4.6.1. All the images and buttons had moved around so I went back and re-arranged everything. Now a new problem has occurred, when I switch from the 4" simulator to 3.5 inch images get cut off, buttons and toolbars move around as well. I been searching for an answer for days and Im new to stackoverflow so I hope I have follow all rules and my question in the correct section. Few notes on the project: Using Autolayout, Size - Inferred, Orientation - Inferred Opens in: Default 5.0, Project Deployment Target 7

Why won't my Collection View Cells display in the iPhone Simulator?

二次信任 提交于 2019-12-02 08:25:15
I am trying to programmatically create a Collection View with six cells. The iPhone Simulator in Xcode 8 told me that my build was successful. There is still an error though. Any help spotting the bug or bugs that are causing my cells not to display in the Simulator is greatly appreciated. (I put the Collection View directly into the IB from the Object Library. Also, I want each cell to occupy the entire size of the Collection View, hence displayedCellDimensions , because the user will segue between cells when a forward or backward button is tapped.) Thank you! import UIKit class

All Animation are executing slowly

孤者浪人 提交于 2019-12-02 08:08:02
I'm not sure what happened to the animation process. Suddenly my all animations are executing slowly. I've reset my Simulator , restarted my Mac , but doesn't help. I'm not sure what I've done or its a system issue. Please check the below image. Every animation is executing slowly. I'm using Xcode7.3.1 , Simulator iOS 9.3 . Its a simple pushViewController and nothing This is just a minor problem. I think You have just checked the Slow Animation in simulator by mistake. All you have to do is that Go to your simulator>Debug>Slow Animation Uncheck Slow Animation Muruganandam.S You have to check