multiple instance if statement in xcode (iphone)
what is the proper way to do If statement with two variable in Xcode for Iphone currently I have if (minute >0) && (second == 0) { minute = minute - 1; second = 59; } ...
what is the proper way to do If statement with two variable in Xcode for Iphone currently I have if (minute >0) && (second == 0) { minute = minute - 1; second = 59; } ...
Simple question. Are there any tools for generating Xcode projects from the command line? We use SCons to build our cross-platform application, but that doesn't support intrinsic Xcode project generation. We'd like to avoid creating the project manually, since this would involve maintaining multiple file lists. ...
What is the quickest way to jump to a particular symbol/selector/class in Xcode? (I'm looking for keyboard shortcuts preferably). Right now, I know two ways of doing this: “Open Quickly” > Click on the Symbols dropdown menu at the top of the editor > Select the selector to jump to it. Click on “Project Symbols” in the “Groups and File...
(Problem solved now, see answers below) Hello, in my app I am trying to create a points counter. That increases a number by 10 every time a button is pressed. I successfully managed to get my app to increase a value (0) by 1 every time a button is pressed, and to remember the latest value and display it next time the app starts. But w...
What's the difference between "Build and Go (Run)" and "Build and Run" in XCode? Why is this so Ambiguous? ...
Hello, I'm designing an application that reads data to the iPod touch/iPhone that is sent to it via multicast sockets with UDP and I need to store it as a file in a document directory. Does that exist on on the iPhone or iPod Touch? I know there is NSFileHandle and NSFileManager, which is what I plan on using, to take care of reading and...
i got 3 syntax errors: "syntax error before "}" token" my code was IBOutlet UITextView *fruitDescription } "syntax error before "{" token" my code was - (void)viewDidUnload { "syntax error before "{" token" my code was - (void)dealloc { Any ideas? ...
How do I manually touch a UIView means programattically. I want to touch a view inside a UIScrollView touch manually. Any idea how to do this? Or how do I manually call UIScrollView's scrollViewWillBeginDecelerating? ...
I don't understand the output from the "Leaks" performance tool in XCode. How can I interpret this output? ...
UIView.h #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @interface UIView : UIResponder { IBOutlet UILabel *endLabel; IBOutlet UIButton *goButton; IBOutlet UITextField *textBox1; IBOutlet UITextField *textBox2; @property(nonatomic, retain) UILabel *endLabel; @property(nonatomic, retain) UIButton *goB...
I am trying to build an adhoc build for my app , I am following the instructions on the apple's documentation which says Select the Target and open the Build settings inspector. In the ‘Code Signing Entitlements’ build setting, type in the filename of the new Entitlements.plist file including the extension. There is no nee...
Hi, I am having an issue with updating the contents of an "myInfoBox" object I created to be displayed while some background processes are done. In the delegate method I am creating a new viewController: -(void)loadMainView { myFirstViewController = [[MyFirstViewController alloc] initWithNibName:@"MyFirstView" bundle:nil]; ...
Does anyone know how to install cocos2d so it shows up in the new projects template window? ...
As I've developed my app, I have imported and incorporated a lot of images, sounds, etc. I guess I could just write a shell script that greps the source code, but I'm wondering if there's an existing that will identify any unused resources in my project. Thanks! ...
Hi All, I have created a static library following this link. But I am facing Problems in using the library. For reference on how to use static libraries in an iPhone project I followed this link . But I am stil struggling with the "How to implement static libraries in any other iPhone project?" question. Thank you all. ...
Hey ladies and gents, I just got my OS X leopard VM booted :). As such I am now planning to learn how to use XCode and start developing on the apple platform. I have a visual studio background, and I can use unix (not a hardcore scripter but I know more than the average) If anyone could point me to a good tutorial in apple especially ...
I've always seem to work around this lack of knowledge but I thought I would ask the community. I hope this question will make sense. In XCode, when I call a function that has several parameter the intellisense pops up. When I hit TAB the first time, it takes me directly to the first parameter. How do I get to the next parameter easi...
Hi, I've had subversion running in Xcode for a while. The integration of subversion has always hung by a thread. However my subversion server has changed its ip address ... and my xcode project still tries to look up the source on the old ip. I have changed the ip of the subversion server via the SCM menu in xcode ... however these cha...
I am working on an iPhone application. When the application starts I authenticate, establish a Restful connection, get data in form of XML file, parse it and then display it in form of table view. Here is my problem. If the user information is already stored on the application or if it is hard-coded in the code, the application takes t...
Hey guys I'm relatively new to Xcode and one thing that has bothered me is that when I add a resource it gets added to the top level directory of my project directory. So for example, at the moment, all of my images are at the top level directory and it makes things look messy. I rather would've liked, for example, to have an images/ fol...