ios-simulator

UIView Clipped By Statusbar until Autorotate

情到浓时终转凉″ 提交于 2019-12-07 04:05:36
问题 Ive created a multiview application that uses multiple controllers to display and control views. The problem Im having is, when the simulator initially loads the view the header is partially covered by the bar at top of screen and the tool bar at the base is not touching the base of the screen. I used the Interface builder size attributes to control the view when the iphone rotates and it works perfectly. All smaps into place perfectly both in landscape and portrait mode AFTER a rotation but

What is “Terminating in response to backboardd's termination”?

五迷三道 提交于 2019-12-07 04:02:56
问题 i use a piece of code for drop shadow on a view with help of slider. Slider is set -15 to 15. This code works awesome when slider.value is positive but app stop working if its negative. the crash log is weird Terminating in response to backboardd's termination . i got this log first time. What is that? here is my code. childViews.layer.shadowColor = [[UIColor blackColor] CGColor]; childViews.layer.shadowOffset = CGSizeMake(slide,slide); childViews.layer.shadowOpacity = 1.0; childViews.layer

Xcode UI testing - login/logout with stored credentials

你离开我真会死。 提交于 2019-12-07 03:11:56
问题 I want to run functional (UI) tests for the login procedure in my iOS app (Xcode 7.2.1). The app's behaviour is that upon successful login, user credentials are stored in order to automatically login (without showing the login screen) in the next launches. So I set up a sequence of UI events in the login screen to make the login test pass on the first time the app launches in the iOS Simulator. However, next times I run my tests will fail, since the login screen doesn't even show up as

Disable location service in iPhone simulator?

本小妞迷上赌 提交于 2019-12-07 02:53:35
问题 I'd like to test what happens if my app can't get the location coordinates. Is it possible to disable the location service in the simulator, like on an iPod Touch with WiFI turned off? I still don't have my iPhone Developer Program certificate, so I can't test it on my device. Thanks in advance! 回答1: As a workaround you can try to simulate update location failure by constructing NSError object with appropriate values and calling corresponding CLLocationManager delegate didFailWithError:

You don’t have permission to save the file “988BF072-A4B9-4ABE-9FB8-2F3A8EBC2E2C” in the folder “CoreSimulator”

做~自己de王妃 提交于 2019-12-07 02:45:02
问题 This folder exists. I've tried moving it to the trash (it reappears and then this message pops up). I've reset all permission to all enclosed folders to R+W. I've repaired permissions on my drive. Plugging in a real phone works fine (probably not relevant). 回答1: Just finished solving this problem. I think the main issue is that you are looking in the wrong place. These are the steps I took: Make hidden folders visible by going to terminal and executing these two commands: defaults write com

Xcode 7 GM missing iOS 7 simulators

感情迁移 提交于 2019-12-07 02:11:59
问题 I've upgraded my Xcode 7 beta version to Xcode 7 GM but I am missing iOS 7.1 simulators. I still have Xcode 6 and I can use 7.1 simulators there. I tried to look in Preferences -> Downloads but there are only 8.x simulators. I have Deployment Target set to 7.0. I can get app working with 7.1 simulator in Xcode 7 beta 6. So where is the problem? Before final release Apple remove 7.x simulators but I'll find them with production release? Is it possible to enable these simulators now? Thanks

Optional Framework Not Working (CoreAudioKit not on Simulator)

若如初见. 提交于 2019-12-07 01:42:40
问题 To get MIDI over Bluetooth working, I need to use the CoreAudioKit framework. This works perfectly, but I am not able to compile on the simulator. Making the framework "optional" doesn't help, error is ld: framework not found CoreAudioKit I think it should work according to the docs Deleting the framework allows my code to compile I've got this in code, which is why I can delete the framework without issues. #if !TARGET_IPHONE_SIMULATOR #import <CoreAudioKit/CoreAudioKit.h> #endif How can I

Youtube API Authentication - Iphone

落爺英雄遲暮 提交于 2019-12-07 01:29:21
问题 I am trying to upload video using sample code of youtube api. When i press upload button, the progress bar finishes its process, but once when it reaches end of point i get error. Error description is as follows : YouTubeTest[2149:f803] error - Error Domain=com.google.GDataServiceDomain Code=400 "The operation couldn’t be completed. (com.google.GDataServiceDomain error 400.)" UserInfo=0x69d5bd0 {} This is code for upload button pressed - (IBAction)uploadPressed:(id)sender { [self.view

add photos to iPhone simulator

我们两清 提交于 2019-12-07 00:55:45
问题 I need than on button click opens iPhone's default album and I'll can chose a photo. I read a lot about this, but still don't works. I do the following: ~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE/ I'm storing two pictures IMG_0000.JPG (300 on 300 px) and IMG_0000.THM (75 on 75px) In my app I do the following on button click: - (IBAction) btnOpenAlbum { album = [[UIImagePickerController alloc] init]; album.delegate = self; album.sourceType =

View source in iOS Simulator?

北城余情 提交于 2019-12-06 21:25:54
问题 Does anybody know of a tool where I can inspect the source code of a site in Apple's iOS Simulator? Something like Firebug or the Chrome Developer Tools for this would be great, and I haven't found anything yet. 回答1: The old, previous answers have been deleted as they contained obsolete information. Using at least Xcode 4 and Safari 6, open up a web view in the iPhone Simulator, then switch to the desktop Safari. In Safari's Develop menu (you have to enable it in the Preferences), you'll find