xcode3.2

NSDate dateFromString deprecated?

社会主义新天地 提交于 2019-11-30 15:51:56
I'm trying to use the NSDate dateFromString method but I'm getting an warning and it's crashing the app. The code looks like: NSString *pickerDate = [NSString stringWithFormat:@"%@", timeSelector.date]; NSDate *defaultDate = [NSDate dateFromString:pickerDate]; The warning is: 'NSDate' may not respond to '+dateFromString'. It appears that method is deprecated (in the midst of an upgrade from XCode 2 to 3. What alternate method can I use to create a date from a string? NSDateFormatter is the intended way for you to get an NSDate from an NSString . The most basic usage is something like this:

Undefined symbols for architecture i386 [duplicate]

£可爱£侵袭症+ 提交于 2019-11-30 10:57:23
Possible Duplicate: symbol(s) not found for architecture i386 I have an app to complete, and when I start trying to understand what the previous developer did (it was done with Xcode 3 I think) by executing the simulator, Xcode 4 show me 25 issues: Ld build/Debug-iphonesimulator/RadioPlayer.app/RadioPlayer normal i386 cd /Users/haithembenhammouda/Desktop/SonVidéo setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4

UIPickerView with NSDictionary

Deadly 提交于 2019-11-30 07:12:32
I am a .NET programmer and new to Objective C. I am trying to make a UIPickerView which acts like a .NET dropdownlist. User sees the list of text and selects one and the selected value (which is the ID) is used in code. I have been browsing for almost half a day trying to figure this out. I could add a regular PickerView with list of strings, picker view with mulitple components and picker view with dependent components none of which seems to answer my query. Please help. You can use a NSDictionary as a data source for UIPickerView but if you have a custom NSObject that already contains the

Way to restore Xcode to accept armv6 architecture?

拟墨画扇 提交于 2019-11-30 03:23:37
I have a 3rd party .a library, which is apparently compiled for only armv6 compatibility, where both new Xcodes (3.2.6 and 4), both now require a separate armv7 slice to run on the device. The link error is: file is universal but does not contain a(n) armv7 slice for architecture armv7. Anyone know how to make either of the two new Xcode operate as 3.2.5 did and accept the existing library while I'm waiting for the library vendor to cook up an armv7 version? In Project Settings, select "Standard" for the architecture (not "Optimized"). This should allow you to select "armv6" for the Active

How to update Xcode to install “UNIX Development Support”?

我是研究僧i 提交于 2019-11-30 00:39:22
问题 I installed Xcode a long time ago. Apparently I didn't check back then the "UNIX Development Support" checkbox. Now I want to have them but when I click on the installation this is what appears: The UNIX Development Support check box is disabled Q: How can I install the UNIX Development Support? Is there a way to run some script that creates all the needed links from /Developer/ to /usr/bin ? EDIT: Note: This is for old Xcode 3. Screens and tool names differ for Xcode 4 ("Unix Command Line

Undefined symbols for architecture i386 [duplicate]

六眼飞鱼酱① 提交于 2019-11-29 16:19:45
问题 Possible Duplicate: symbol(s) not found for architecture i386 I have an app to complete, and when I start trying to understand what the previous developer did (it was done with Xcode 3 I think) by executing the simulator, Xcode 4 show me 25 issues: Ld build/Debug-iphonesimulator/RadioPlayer.app/RadioPlayer normal i386 cd /Users/haithembenhammouda/Desktop/SonVidéo setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr

Difference between writing #import <filename.h> and #import “filename.h” i.e written the file name in angular brackets and quotes? [duplicate]

怎甘沉沦 提交于 2019-11-29 12:45:11
Possible Duplicate: what is the difference between #include <filename> and #include “filename” Difference between writing #import and #import "filename.h" i.e written the file name in angular brackets and quotes? Quoted form This form instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of any files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable. Angle-bracket

UIPickerView with NSDictionary

孤街醉人 提交于 2019-11-29 09:02:59
问题 I am a .NET programmer and new to Objective C. I am trying to make a UIPickerView which acts like a .NET dropdownlist. User sees the list of text and selects one and the selected value (which is the ID) is used in code. I have been browsing for almost half a day trying to figure this out. I could add a regular PickerView with list of strings, picker view with mulitple components and picker view with dependent components none of which seems to answer my query. Please help. 回答1: You can use a

XCode Compiler Error: ld: library not found for -loauth

折月煮酒 提交于 2019-11-29 03:50:35
I'm trying to use the Twitter libraries and after adding liboauth.a and adding oauthconsumeriphonelib to my header search path, I'm now down to 1 compilation error, which I can't seem to get rid of. ld: library not found for -loauth Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 Anyone know what could be causing this? Continuing to What Robin suggested You also need to set the Library Search Path. Right Click the Target File and Choose -- Get Info else you can also get the same by choosing Edit Actice Target Under the Project Tab in

Way to restore Xcode to accept armv6 architecture?

流过昼夜 提交于 2019-11-29 00:59:03
问题 I have a 3rd party .a library, which is apparently compiled for only armv6 compatibility, where both new Xcodes (3.2.6 and 4), both now require a separate armv7 slice to run on the device. The link error is: file is universal but does not contain a(n) armv7 slice for architecture armv7. Anyone know how to make either of the two new Xcode operate as 3.2.5 did and accept the existing library while I'm waiting for the library vendor to cook up an armv7 version? 回答1: In Project Settings, select