I'm new to XCode and I find the file management a huge pain. In most IDEs, you can simply have the project source tree reference a directory structure on disk. This makes it easy to add new files to your project - you simply put them on disk, and they will get compiled automatically.
With XCode, it appears I have to both create the fi...
I have a few static library projects which are used in a Mac application, I'm working on porting these libs to the iPhone and I would like to use the project to build both the Mac and iPhone versions.
For that purpose I setup an additional target for the iPhone. This looks like it should work but I see that if I try, for example, to add...
Possible Duplicate:
iPhone Interface Builder and Delegates
What is the relationship between these three component in the Objective C / iPhone world? I found that the App Delegate have some relationship with the UI and the variable in code. It match the variable and related UI object on the view. But I found that the File's own...
Hello.
I am making a iPhone app that has two different targets. They use the same files, with some #ifdef here and there, and that works just fine.
But now the project has stopped.
Does anybody know how to have different Settings.bundles for both targets?
Thank you!
...
My experience is in Java development with Eclipse, where if I add a protocol in a header file there is a shortcut to add the required methods of that protocol in the implementation file. Does Xcode have a similar shortcut?
For example: In my .h, I define a class to conform to the UIPickerViewDelegate and UIPickerViewDataSource protocols...
Okay, I have read books upon books all with great examples of having multiple view controllers with their own Nibs along with reading the apple docs.
My question is this: All examples show the multiple view being displayed via a toolbar or tab bar. User clicks some button on one of those mentioned, a new view is displayed, (keeping th...
I am using UITextField to receive user inputs. However, since my textfields are towards the middle/bottom of the nib, it gets hidden when the keyboard pops up. Is there any way sort of slide it along with the keyboard so that it's on the top of the keyboard during selection? Also, since I am also using the numberpad, is there an easy way...
I have a view controller that allows users to add an nsstring to an array that is the source for a uitableview directly underneath the add string uitextfield. I want to add the string to the uitablview as soon as its added to the backend array. ive tried a couple different things and im not really sure how to do it. my feeling is that i ...
Basically i have a uitext field that adds a string to an array when you hit the done button of the keyboard (or hit the'+' button next to the field), which I think is the behavior to be expected in the ui by users, however if they choose to close the keyboard by touching the big button behind everything that will also resign the first re...
I've ran Build and Analyze on my XML parsing code and found out the following:
How could I fix it?
...
Hey.
I use FBStreamDialog to let users publish on their news feed.
[fbStreamDialog show];
makes the dialog view popup, the user can press cancel or submit that message.
Now...my problem is that both buttons close the dialog view and call the delegate method dialogDidSucceed.
How do I find out which button was pressed?
Its very i...
Hello everybody,
In my Xcode project, I've created a symbolic link script in the target that allows me to edit my scripts and see the updates live. Unfortunately, a side-effect of this is that if I don't clean before building again, I get the following error message:
ln: /Users/atg/Desktop/Projects/Xcode Projects/Debug/Xsera.app/Conten...
Hello,
(newbie here) I'm using a UINavigationController in my iPhone app and would like a child view to access UIImages from a sibling. In other words the user sets images on child1, then on child2 I want to access those images.
Thanks in advance for your help!
...
Hello all,
I have a UIViewController in which i have a UITextView added from interface builder.Now i want to push a view when i click on hyperlink or phone number. I am able to detect that which url is clicked using a method i found in stackoverflow. Here is the method
@interface UITextView (Override)
@end
@class WebView, WebFrame;
@pr...
Hey guys,
Basically I've been trying to make a working hours calculator and I've run into a problem. When the start time's value is greater than the finish time (eg. start is 23 and finish is 19), the result comes up as a negative. So what I want it to do in that scenario is to then multiply the negative number by -1 to make it positi...
I am fairly new to iphone development and programming in general and am wondering how to read some text from a text file to be diplayed in a UITextView. I have tried various ways to do it but just can't seem to be able to get it to display:
- (void)viewDidLoad {
[super viewDidLoad];
NSString *filePath=[[NSBundle mainBundle] pathForReso...
Hey guys, I basically have a working hours calculator in the works and I was wondering how I can disable certain numbers from being put into a field. For example, for the minutes field, I would like to prevent 61-99 being inputted. What sort of code would I need to make that work?
...
I recently "installed" my app on my iPhone for testing. Everything was running fine but then on occasion, the app would just stop running, and send me back to the home page.
I checked for a crash log but there is none to be found. The directory is there, but no log. I then noticed then when I ran a few other apps, on occasion they wo...
Hi,
I'm developing on a number of different machines and haven't used my laptop for a while. Today I tried to use for the first time after a couple of months only to find that Xcode steadfastedly refuses to open any .xcodeproj projects!?
I ended up uninstalling the older (I think it was 3.1) Xcode installation and re-installing the lat...
I am trying to add a data model to an existing Xcode project. I am doing so by...
File -> Add Files... -> iPhone OS/Resource/Data Model -> next -> (name the model) -> Next -> Finish.
What I get is an empty blue folder named mymodelname.xcdtamodel and no editor.
I tried creating a new windows based (use core data for storage checked) p...