ios-simulator

Resign First Responder on ScrollView Touch

一笑奈何 提交于 2019-12-12 08:03:45
问题 How can I hide the keyboard on ScrollView touch event... Scenario is like that... ->View ->ScrollView ->Textfield I want to hide the keyboard on touch of scrollView. I tried to override the class for scrollview but still i can't do it. 回答1: Doing like this will help: @interface MyClass <UIScrollViewDelegate> { } @implementation - (void)viewDidLoad { yourScrollView.delegate = self; } - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { [myTextField resignFirstResponder]; } If you

Accessibility Identifier not visible in Accessibility Inspector with iOS Simulator

自作多情 提交于 2019-12-12 07:56:46
问题 I wanted to use the Accessibility Inspector to verify all the accessibility identifiers in my app running in the simulator (iOS 9.2). Accessibility Inspector is able to return multiple accessibility fields but not the identifiers. Any idea why and how I could see them ? 回答1: You will never be able to (without changes from Apple) see this property in Accessibility Inspector, because it isn't really used for accessibility. That it is associated with accessibility is a misnomer, related to

How to add support for 10.5 inch iPad Pro

安稳与你 提交于 2019-12-12 07:13:05
问题 I've just downloaded the latest Xcode 8.3.3 update from the MAS. I was wondering how to add support for the new 10.5-inch iPad Pro? I'm using storyboards with auto-layout, a launch screen storyboard and all app icon sizes are added to the xcassets. 回答1: I believe that the auto-layout launch screen story board should be all that is needed. However, I have found that if I build an application under Xcode 8.3.3, the UIScreen.mainScreen.bounds returns 736 x 1024. If I build the same application

iOS Simulator failed to install the application in Titanium

佐手、 提交于 2019-12-12 05:27:35
问题 I have created a Titanium ios 3.1.0 app, But now when I am trying to run it is giving me the following error. [ERROR] : An error occurred running the iOS Simulator [ERROR] : [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "SpringBoard failed to launch application with error: -3" UserInfo=0x7fe2b84837c0 {NSLocalizedDescription=SpringBoard failed to launch application with error: -3, DTiPhoneSimulatorUnderlyingErrorCodeKey=-3} [ERROR] : [ERROR] : Project

iOS6 UIViewControllerHierarchyInconsistency on Button click

徘徊边缘 提交于 2019-12-12 05:13:10
问题 I facing issue in iOS 6 iPad On button click -> open popover with UITable On select a row -> modalviewcontroller open. dismiss modalviewcontroller (it works fine) Then again click on button, app crash on button click (1st step) this issue is only in iOS 6. It works fine in iOS 5, iOS 4.3 *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View <UITableView: 0xb847400; frame =

Easy way to create GPX file with tracks

前提是你 提交于 2019-12-12 04:48:25
问题 How do I easily create a GPX file that represents a track between two points, with waypoints? 回答1: This Tool is great for that! set up a location or route and download your GPX file. dont forget to remove .txt at the end of the file. Have FUN:D 回答2: I found the python script on this site incredibly useful and dead simple to generate a gpx file containing a track with waypoints: https://coderwall.com/p/on-ica Here's the gist: https://gist.github.com/basuke/3605355 来源: https://stackoverflow.com

Documents folder working in Simulator but not iPad - Swift 2.1

我与影子孤独终老i 提交于 2019-12-12 02:45:14
问题 The below code unzips a folder of images into a folder I create. and then loops through it and adds the names to an array, then loops through this array and retrieves those file names into an array of images. It works perfectly on the simulator, but the data is empty when I do it on the iPad, it prints out nothing. I can only assume the folder isn't accessible or is being searched before the unzip has completed, but It shouldnt as I am using NSOperationQueue with a completion block. func

No provisioned iPhone connected…!

感情迁移 提交于 2019-12-12 01:33:08
问题 Hii all, I tried to test my application on the simulator and it fails. Just the day before it was working fine. i checked in the organizer window.. all the provision certificates are installed, but still the color is Orange,. its not working. and when i try to debug the application it shows "No provisioned iPhone connected" error. I got the same problem before, at that time i changed the name of the folder which specify the iphone version, but unfortunately i don't remember now where that

react-native run-ios is having issues connecting to the iOS simulator

限于喜欢 提交于 2019-12-12 01:14:59
问题 I'm having issues running my react-native app on the iOS Simulator. It runs fine on my Windows machine on the Android simulator, so I'm pretty sure it has nothing to do with my own code. The issue seems to have something to do with permissions. If I run react-native run-ios and the simulator as my user (not root), it seems to find the simulator fine, but I get an error during build: 2017-03-12 14:22:05.656 xcodebuild[2612:76143] couldn't read dependency graph from '/Users/jordan/src/anxiety

iAd works on simulator but crash on device(ipad)

我怕爱的太早我们不能终老 提交于 2019-12-11 22:44:04
问题 I am trying to integrate iAd to my app, here is what I do Create a single view app(devices type universal ) by Xcode 5.1. Add iAd.framework to my project. Import <iAd/iAd.h> in ViewController.h Add self.canDisplayBannerAds = YES; in viewDidLoad method. Compile and run the app on iPhone and iPad simulator The app works well on both simulator and I can see the banner at the bottom of my app. But when I test it on my iPad(running IOS 6.1), the app crashes, Here is what I got. 2014-04-19 19:25:56