ios-simulator

Problems with modal view launched over a split view controller

元气小坏坏 提交于 2019-12-05 16:15:48
I have created a split view application that begins with a modal view splash page. The problem is that the modal view always launches in portrait mode, even if the ipad is in landscape. If I rotate the ipad a couple of times, it rotates appropriately. I have set UIInterfaceOrientation in my Info.plist, but it doesn't have any impace. in didFinishLaunchingWithOptions , I am using the following code ... [self.window addSubview:splitViewController.view]; SplashViewController *modalView = [[SplashViewController alloc] intiWithNibName:nil bundle:nil]; modalView.modalPresentationStyle =

Running iPhone 5 Simulator on Snow Leopard

血红的双手。 提交于 2019-12-05 15:43:14
问题 I am running the iOS6 SDK on my mac running Xcode 4.2 on Snow Leopard using steps from this Stack Overflow post. I'm now trying to get the iPhone 4" screen to work. I have been able to get iOS 6 to show up in the iOS simulator under the Hardware > Version menu. When I try to load an iOS 6 device, I get the error: "The simulated application quit" - "Click Relaunch to try again". It then gives me an option to switch to a different SDK. If I choose iOS6, it again crashes. If I choose iOS 5, it

iOS 8 - Can't get current location, Error Domain=kCLErrorDomain Code=0

别等时光非礼了梦想. 提交于 2019-12-05 14:42:28
I've problem with getting my current location. I still getting error: Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)" I already did everything that I found here: Reset content and settings in iOS Simulator (map application in simulator shows correct location). In Xcode at Product>Scheme>Edit I unmarked Allow Location Simulation (when I mark it,It simulate e.g. London). I have added NSLocationWhenInUseUsageDescription to Info.plist file in my project (App asks for Location permissions and I can see them in Settings in iOS simulator). I have Wi

What does com.apple.CoreSimulator.CoreSimulatorService do?

血红的双手。 提交于 2019-12-05 14:25:10
问题 Our iOS automation tests on simulator have gone through disaster since upgrading to Xcode6. We can observe view switching slowing down, UIAutomation felt it too and often returned an empty or not fully updated app main window, you can imagine the stability. Part of the reason is that we have slow VMs, but still we need to find ways to workaround it. Then I notice there's the CoreSimulatorService process staying alive between the launches and shutdowns of simulator. So I killed it to see what

Re-enable iPhone Simulator location services

旧街凉风 提交于 2019-12-05 13:18:34
I have disabled location services on the simulator with the "Don't ask again" option set, thinking that I could re-enable it later, but now I can't find out how. Can someone point me out where to change this setting? Thanks. Solution: System Preferences > Security > (Button) Reset Warnings You may need to click the lock in the bottom left side before you can click that button. I did this and it worked: iOS Simulator > Reset Contents and Settings... That deleted the apps installed in the simulator but also the settings for the GPS, well, and everything else. I was able to reenable the gps after

iOS Simulator: Invalid device state

半腔热情 提交于 2019-12-05 13:09:03
I just downloaded Xcode 6.4 from App Store and started to create a hello world app to learn swift but I get the error saying "Invalid Device State". I googled a lot and tried the below things: Restarted Mac and entered xcode and started project (as mentioned in a stack overflow thread) I created a new iOS app with another layout but showed the same error again if I ran that project. I deleted all projects and re-installed Xcode again. Started a new project and ran it but still getting the same error. I am running Yosemite 10.10.1 and the Xcode version is 6.4. Can anyone help me ? Devices can

Local notifications are not working on device but working on simulator

人走茶凉 提交于 2019-12-05 12:50:46
I've read some guides of how to use UILocalNotification 's. So I've tried and haven't succeed since my first try. To register notifications in AppDelegate.m I use: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... //if it is iOS 8 if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge|UIUserNotificationTypeAlert|UIUserNotificationTypeSound) categories:nil]; [application

Iphone simulator and webcam

我的梦境 提交于 2019-12-05 12:46:48
问题 Can we make able the iphone simulator to capture an image via webcam, I've written a program to take image from iphone camera. Can i test this with the iphone simulator??? Pls help 回答1: You cannot take image via Mac's webcam from iPhone Simulator. For camera, you need to test it on a device. 回答2: Imagine if this would be possible on the Simulator, your Mac camera resoultion would be very different from the device one and your mac performances too. This could lead to bad surprises when moving

Taking the highlight off of Icons

泄露秘密 提交于 2019-12-05 12:34:26
When programming and looking at all different apps I have realized that some apps in the app store don't have the lit highlight on the top, making it look more 3D. I have an app idea but I need to take the highlight off. The app have been programmed in Xcode, so if anyone answers, that would be great. Thanks! from http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html : If you choose, you can prevent iPhone OS from adding the shine to your icon. To do this, you need to add the UIPrerenderedIcon key to your application’s Info

Xamarin.Auth iOS9 Authentication SSL ERROR

瘦欲@ 提交于 2019-12-05 11:10:01
I've just updated XCode to the 7.0 (7A220) and this take my Simulators to iOS9. From that moment I cannot perform successfully any OAUTH call from the simulators.. I tried every model, from my App to the "sample Xamarin.Auth App". The answer is always the same: "Authentication Error An SSL error has occurred and a secure connection to the server cannot be made" The Code is the STANDARD one, I only changed my AppID. The same code is working on the Android version of the same App! var auth = new OAuth2Authenticator ( clientId: "my app id", scope: "", authorizeUrl: new Uri ("https://m.facebook