xcode4

How to change the keyboard type for a text field in Xcode

拜拜、爱过 提交于 2019-12-10 18:56:54
问题 I created a text field in XCode, not Interface Builder. In IB you can select different keyboard types. How can you do the same thing in XCode? 回答1: How about the keyboardType property? 回答2: 1) In xib you can change by clicking the Keyboard type like below 2) Programmatically you can set by textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation; 来源: https://stackoverflow.com/questions/3790540/how-to-change-the-keyboard-type-for-a-text-field-in-xcode

Xcode 4 Icon Problem !

百般思念 提交于 2019-12-10 18:46:48
问题 My problem is: Icon specified in the Info.plist not found under the top level app wrapper: Icon.png (-19007) I've done exactly what Apple documentation says and I'm still getting this warning! I have everything set, everything is in PNG, the size is correct, Info.plist has added Icon files with 6 items (Icon.png, Icon@2x.png, Icon-72.png, Icon-Small-50.png, Icon-Small.png, Icon-Small@2x.png) I have tried all the ways which I found in different website but none of these solution work for me.

XCode 4, dylib & install_name_tool

只愿长相守 提交于 2019-12-10 18:12:51
问题 I'm trying to get a dylib working in my OSX project. Ive been reading a few samples, this one specifically: XCode 4 adding dylib But I still cannot get it to work. Here are the steps I have performed: Copied the testing.1.dylib to my XCode projects folder. Ran sudo install_name_tool -id @executable_path/../Frameworks/testing.1.dylib testing.1.dylib Ran: otool -L testing.1.dylib and received the following: testing.1.dylib: @executable_path/../Frameworks/testing.1.dylib (compatibility version 2

Binary being analyzed must exist, iOS App Archive in xcode

你。 提交于 2019-12-10 17:56:44
问题 I'm trying to validate my App for App Store Submission, I've made an update to it. It was using Three20 before, though I'm not sure what version, probably 1.0.3. Now it's using 1.0.5 and I have rerun the python script that adds Three20 to an app with the --xcode-version=4 flag. I have no linker errors, and it archives fine, but I get the following errors when I try to validate the archive for distribution: I'm kind of at my wit's end, been dealing with linker errors all day, and general

NSTextField leaking when handling key events

℡╲_俬逩灬. 提交于 2019-12-10 17:43:02
问题 I'm new to this forum and I have searched but not found any answers to this problem which has been puzzling me for best part of this week. An NSTextField causes a memory leak every time a key is pressed. I have isolated this problem from my code and it can be reproduced as follows: Create a new "Cocoa Application" project. Place an NSTextfield in the main menu xib window. (No Binding, Outlet or Action) Product -> Profile, choose "memory leak" instrument (in XCode 4) No leaks until the user

How to set up SDL on XCODE 4?

南笙酒味 提交于 2019-12-10 17:12:20
问题 I'm having troubles with sample templates and overall installing of SDL on my Xcode 4. There are no tutorials and old templates just don't work! If anybody has Xcode 4 SDL templates, please share. EDIT: @Joshua Nozzi I tried opening template from old version of XCODE, 3.2 and it opened, but there were no files in the project and it said - base sdk missing. I tried adding SDL.framework but it didn't help! 回答1: I just pushed my working SDL test Xcode project as a public Github repository, so

How can I set NSZombiesEnabled in XCode4?

£可爱£侵袭症+ 提交于 2019-12-10 16:45:34
问题 How can I enable NSZombiesEnabled in XCode4? I used to use this argument to debug EXC_BAD_ACCESS in XCode3. Not sure where to do it in XCode4. 回答1: Go to Executables of your application (Shown left side of your window) Expand it and double click on your application. Select Argument tab and insert NSZombiesEnabled and set its value to TRUE. (In second section) Here is the example too...Set NSZombiesEnabled 来源: https://stackoverflow.com/questions/6991328/how-can-i-set-nszombiesenabled-in-xcode4

Apple PrefPane example fails to build with clang error objecting to both -fobjc-arc and -fobjc-gc

*爱你&永不变心* 提交于 2019-12-10 15:29:14
问题 I'm trying to build a preference pane as a part of learning OS X development. After downloading Apple's preference pane example code and trying to build the project I get the following error: clang: error: cannot specify both '-fobjc-arc' and '-fobjc-gc' Turning off garbage collection in Build Settings allows the project to build properly, but once the preference pane example is installed on the local machine it won't start saying, "You can’t open PrefsPane preferences because it doesn’t work

Xcode 4 - Linking error when archiving application

十年热恋 提交于 2019-12-10 14:55:26
问题 We have been using Xcode 4 and LLVM 2.0 for a couple of months now and after finishing a huge update to our application we thought we would send it off to Apple. What we couldn't imagine however, was that although the program was able to be built for both the simulator and devices, when it came to archiving, XCode just threw a nasty linking error and left us hanging there. The error is related to the ZipKit library (we previously discussed the issues we had with making it work under XCode 4).

No such file or directory after removing a duplicate subdirectory

让人想犯罪 __ 提交于 2019-12-10 12:57:11
问题 My app was building and running fine on the simulator and device, but I noticed that for some reason, I had a duplicate directory within my main directory, and some duplicate files as well. So while my main directory was /MyAppName, there were also files in /MyAppName/MyAppName. I carefully moved any non-duplicate files out of the subdirectory, deleted the directory, and updated the paths for my Prefix Header and Info.plist files. I cleaned and built the project, however I'm still getting an