xcode4

Uninstall Xcode 4 when it was installed via the App Store

纵饮孤独 提交于 2019-12-20 18:40:11
问题 I understand that those who installed Xcode 4 via the developer site are able to uninstall via /Developer/Library/uninstall-devtools –mode=all , however I installed via the App store and there doesn't seem to be an executable with the word "uninstall" in the name anywhere in the Developer folder at all. Any suggestions on how I should go about uninstalling Xcode 4? 回答1: This help for Xcode before MAS install /Library/Developer/Shared/uninstall-devtools If you install it from MAS you can

How do I format the current date for the user's locale?

风流意气都作罢 提交于 2019-12-20 17:47:25
问题 I have this code where I'm trying to get the current date and format it in the current locale. NSDate *now = [NSDate date]; // gets current date NSString *sNow = [[NSString alloc] initWithFormat:@"%@",now]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"mm-dd-yyyy"]; insertCmd = [insertCmd stringByAppendingString: formatter setDateFormat: @"MM.dd.yyyy"]; I know the last line is wrong, but can't seem to figure it out... "insertCmd" is a NSString that I

#pragma mark not listing the first group name

有些话、适合烂在心里 提交于 2019-12-20 17:29:26
问题 I'm using #pragma mark for grouping my methods under certain categories. But the issue is in Xcode 4 my first category is not displaying. My code looks like: @interface MyClass : NSObject #pragma mark - #pragma mark Category 1 //Some method declaration #pragma mark - #pragma mark Category 2 //Some method declaration #pragma mark - #pragma mark Category 3 //Some method declaration @end But when I check on Xcode It displays only Category 2 and Category 3. Category 1 is not listed there, please

Universal iPad/iPhone XIBs - Xcode 4

给你一囗甜甜゛ 提交于 2019-12-20 15:31:37
问题 I want to make a universal app which has two different XIB files. One for iPhone, and one for iPad. They use the same code, just different UIs. How would I create a "universal" app? Thanks. 回答1: Just duplicate the xib file, then rename it to FileName~ipad.xib , add it to your project, iOS will automatically load the correct xib file refer to your device. 回答2: As a start (you say you are creating a view based application), create it based upon either iPhone or an iPad view. This will give you

Xcode 4 unit testing linker error

a 夏天 提交于 2019-12-20 12:21:44
问题 NOTE: "Use GHUnit" is not an acceptable answer to this question. I know most think GHUnit is better than the Xcode4 OCUnit, but that's not what I'm asking about. I'll evaluate that separately. I have an Xcode project that I created in Xcode4 from scratch, with the "Include unit tests" checkbox checked during creation. I have also included some libraries I developed in a previous project. They were added to the project via the "Add Files to x..." dialog and only added to the application target

Multiple-line cursor movements in XCode 4

你说的曾经没有我的故事 提交于 2019-12-20 10:55:12
问题 The same question has been asked for Xcode 3 But the solution there is said to not work with Xcode4. And no new solution is available there. How to get a key-binding to move the curser up/down about 10 lines in Xcode 4 ? 回答1: Eureka! Inspired by the answer on line duplication, this is how you empower Xcode 4 with multiple-line movement: Go to the folder /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources Open IDETextKeyBindingSet.plist . Add a new dictionary

How to remove older unneeded devices?

梦想的初衷 提交于 2019-12-20 10:49:09
问题 So this is related to a prior question I posted - how to remove 4.3 simulators. I stupidly installed the iOS 5.0 Simulator, and now the technique offered in my last post does not work. When you remove the 5.0sdk, then restart Xcode, it forces you to install the legacy simulators or quit. I even deleted Xcode 4.4 and re-installed it to no avail (it must store my unfortunate choice deep in the preferences file). The reason I want to get rid of it is that the Scheme popup now has 5 options in it

Mac OS X Lion Xcode problems using RVM

六月ゝ 毕业季﹏ 提交于 2019-12-20 10:44:26
问题 I had Xcode 4.1 preview 5 working fine but decided to upgrade to the final xcode 4.1 thru the App store. I uninstalled Xcode first... sudo /Developer/Library/uninstall-devtools –mode=all Then installed Xcode thru the app store and rebooted. I also removed RVM completely but... now whenever I try and install a version of Ruby it fails. In the error file i get this: [2011-07-27 18:29:25] ./configure --prefix="/Users/holden/.rvm/usr" checking for a BSD-compatible install... /usr/bin/install -c

Add Custom Fonts In Xcode 4.1

十年热恋 提交于 2019-12-20 10:43:34
问题 i want to use custom fonts in y application. i have declared the "Fonts provided by the application" in the info.Plist file and set the label.font to the font with name with / without the .TTF extension draged the TTF file in to the project and copied the file to the project created an outlet to the label but still, nothing works. if someone knows what is going on over there i would like to get some help. recently i have noticed the this problem are known @ the 4.1 (xcode version). TNX :) 回答1

ShareKit in Xcode 4 - lots of deprecated

。_饼干妹妹 提交于 2019-12-20 10:41:17
问题 I have just loaded the ShareKit files into my project (which worked nicely otherwise), and went to build and run (with no code additions as yet). I received 11 warnings and 37 errors! Is there something I'm missing here? The warnings are for deprecated functions in the SHK**** files. Any ideas? Using Xcode 4. Thanks for any assistance, Kolya 回答1: This fork (https://github.com/mogeneration/ShareKit) compiles/works perfectly on XCode 4/iPhone 3.2.1 Simulator, it should be good for you, besides