xcode4

Any keyboard shortcut to display Xcode's “Show Find Options”?

旧街凉风 提交于 2019-12-12 03:57:33
问题 Xcode offers several key codes to open the Find (CMD-F) or Find and Replace (CMD-OPT-F) editor toolbar, but how can I get the Find Options to show without having to move my mouse over the magnifying glass and clicking (which takes forever, I misclick, and then have to select the menu item - ugh)? 回答1: I have not found a single key to do this, but just discovered that after using CMD-F or CMD-OPT-F that the Find search field has focus, and by tapping the down arrow key twice followed by a

Xcode 4.4.1 build crashing on Snow Leopard

你。 提交于 2019-12-12 03:49:50
问题 I have a project which I am compiling under OS X 10.7.4 using Xcode 4.4.1 I am using Base SDK SDKROOT macosx10.7 I have set Deployment Target MACOSX_DEPLOYMENT_TARGET 10.6 I tested a recent build on Snow Leopard and it crashed. Previous builds using Xcode 4.2 and 4.3 did work, and I can compile on Snow Leopard using Xcode version 3.2.6 Has anyone else had this experience, or better know what I can do to resolve it? OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6 Exception Type: EXC_BAD

How to move this ColorPicker from iPhone to a portion of iPad scene?

点点圈 提交于 2019-12-12 03:13:40
问题 I found a ColorPicker (ILColorPicker) that takes the whole screen on an iPhone. I want to use it in my iPad app (XCode4 using StoryBoards)... it's asking me to "In your view controller's XIB, add a UIView and then set it's class to ILColorPickerView ". I don't want to use the entire scene, just a small part of it... is there another way I can accomplish this? (using Layers, frames, etc)? 回答1: You could programmatically create a popover (UIPopoverViewController), and put the color picker as

Monitoring a directory for changes in OSX without fsevent

倖福魔咒の 提交于 2019-12-12 03:09:25
问题 Is there an alternative to fsevent or some kind of wrapper for it? I'm trying to monitor a specific folder for changes to files with a certain extension. 回答1: There is UKKQueue, which is a nice wrapper for kernel queue event monitoring - the alternative mentioned in the documentation. 来源: https://stackoverflow.com/questions/7209811/monitoring-a-directory-for-changes-in-osx-without-fsevent

Can't show a keyboard on UIWebView on new project on xCode 4.4

孤街醉人 提交于 2019-12-12 01:49:21
问题 I have just created a new Single View Application on xCode 4.4. And it was created with .storyboards files (instead xib). Then I have added a UIWebView. And now I can't show a keyboard by the code line: [self.window MakeKeyAndVisible]; Because there is no any window on ViewController.m. How to force showing a keyboard on UIWebView on this new xCode project template? Thanks a lot for the help! 回答1: You can always get the window property from the UIApplicationDelegate object. Since this is a

how to find where the user tapped on the screen in ios

ぐ巨炮叔叔 提交于 2019-12-12 01:46:30
问题 I want to find where user tapped on MapKit. I cannot find a action to make a connection so i am wondering there is an alternate method for the same. please let me know. 回答1: As @Disco S2 says, add the instance of MKMapView as a subview to your view. To know where your user tapped on the map, use this method: - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view 回答2: Put the mapkit inside a view and listen for touches in that view. There is then a method

Duplicanting XCode project gives me the old myproject.app

╄→гoц情女王★ 提交于 2019-12-12 01:32:00
问题 I have duplicated my project by copying and pasting the folders. Then inside the project I renamed the project name so it pops a window asking to rename the target. I've done this twice before with no problems, but this time, inside the Products folder the myproject.app file is still the old one. The new one does not appear on my scheme options, so I don't know what else to do. Xcode complains about an icon file that doesn't exist anymore. Is there anyway to fix it; is there some other way to

Add a video into splash screen or in the first view of the app (IOS xcode 4.0)

耗尽温柔 提交于 2019-12-12 01:17:37
问题 I'm a beginner in IOS but I need to show a video when the app is launching. Please Can you help me? If is impossible to implement a video on a splash view, there are any idea to create that? Thanks. If I have an orthographic mistake, sorry I come from Spain. ;D 回答1: The "splash" screen can only be an image to be used as a placeholder until your app is able to start up. Even if you found a way to get a video to play, which I don't think is possible, it is against Apple's HIG for how the

Xcode 4 - Tab Bar application - Problem in executing third tab

末鹿安然 提交于 2019-12-12 00:34:48
问题 I have Xcode 4 and I created an application using the Tab Bar template (and not View based app). There is a UISwitch in each of these tabs and when I change it, a UILabel switches between ON and OFF . Very simple app and no confusion. Xcode 4 creates two tabs for me by default. I need a third tab as well, so I drag TabBarItem from the Objects Library and drop it on the existing TabBarController. I create a new file, subclass of UIViewController and the following code goes into three tabs. The

xcode update from 4.5.1 to 4.6

邮差的信 提交于 2019-12-12 00:25:10
问题 Hi I am new to Xcode and wondering how do I perform an update from v4.5.1 to v4.6. Is it necessary to uninstall the current xcode on my Mac in order to upgrade my xcode? 回答1: No need to uninstall the actual version of Xcode. Just open the Mac App Store and an update will appear on the "Updates" tab for Xcode. Have fun! 回答2: Click the mac App Store icon. When you launch the app store, you should see software updates needed. Click on software updates and find xcode. Simply click on it to update