Skip to main content

Posts

Showing posts with the label xcode4

Where is set the active build configuration in Xcode 4

I have 3 configurations in my project (Debug, Distribution_AdHoc and Distribution_AppStore). In Xcode 3 we had a list to choose device, version, configuration and target before build and run. Now with Xcode 4 we only have the device kind and version in this list. This bring my two questions: So where is defined the configuration used ? Is that the configuration defined in "Project > Info > Command-line builds use: Debug" ? And now the "Project" menu is replaced by "Product" So where can we create (or duplicate and edit) a Configuration ? Thank you.

Which member do I put my code in?

I'm writing my first SIMPLE DB app, basically, an offline db, select a listing of records, and then, click on one of those to display on the detail. I looked at an older book for an example (pre xcode 4) because it had an example very similar to what I needed to do. So the example set up all the methods I'd need to access the database in a member called DBAccess.m AND I can tell from the debugger that the code visits main.m and then MasterViewController.m it executes awakeFromNib and didViewLoad which is awesome... BUT where do I put my first statement that calls the routine I need that's in my DBAccess.m file? The book assumes you KNOW where to put your code and leaves it as an exercise for the user... ugh. I can't find any definitive statement about how you insert your code into the execution cycle. Is there a default execution cycle?

xcode 4.2.1 - limiting character length in TextField

I have been trying to limit a textField by many codes available out there in the internet but with no luck. I have added UIViewController<UITextFieldDelegate> in my header file and textField.delegate = self; in my viewDidLoad and implemented the following fundtion in my .m file: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSString *newString = [textField.text stringByReplacingCharactersInRange:range withString:string]; return !([newString length] > 5); } this stil does not limit my text field. any idea?

iPhone Distribution certificate not reachable in Xcode 4

Without my iPhone Distribution Certificate set within XCode 4 (on Release and Release-> Any iOS SDK) I get Code Sign Errors when I attempting to upload with Organizer/Application Loader (this is an update to an existing app). I have the distribution certificate in the keychain but I'm not able to bring it up (or enter it manually, tried name, serial number and user-id) within XCode. I have attempted deleting and re-installing the certificate, restarting Xcode and the system but I'm not able to correct this. I have also manually deleted the provisioning links within the .pbxproj file and cleaned but I'm not able to get this to work. Anyone know how to bring up the distribution certificate within Xcode 4?

How to return from "partial curl&rdquo; type segue

I am attempting to use a partial curl segue to reveal an options view underneath my main view. This is identical to touching the "page curl" button in the bottom right corner of the Maps app. I can successfully execute the segue to the option view, my problem is returning to the main view. I'm hoping to replicate the reverse animation effect of the Maps app as the edge curls back flat and the main view is shown. It doesn't seem logical to create another segue to return back to the main view (what I would do if I were not using the partial curl segue) because the return segue is associated with the original segue. Thanks in advance for any help!