Is there a way to create an if statement based on compile settings? I have an App that accesses a web-based API and when compiling in debug mode I want it to use the private beta version but when I compile for release I want it to use the public live version of the API.
At the moment I just have a NSString holding the url address.
...
I have the following piece of code
- (IBAction)buttonPressed: (id) sender
{
UIButton *button = (UIButton*) sender;
NSLog(@"Clicked button is: %d", button.currentTitle);
}
The output is:
Clicked button is: 26317696
Why is not displaying the title of the button which is "A"?
...
Does anyone have the same problem as I do? ... I've upgraded to the iPhone SDK 3.2 and I am unable to resize UITableViewCell object in my XIB file (usually I've been just resizing the view but now the cell has the same size and there is just a grey are around) ... btw, I've tried to reinstall twice including one deep reinstall.
...
I am trying to get this Outlook Web Access demo account to load in an iPhone's UIWebView, and it does absolutely nothing... I don't even get an error code with the UIWebViewDelegate didfailLoadwithError method... here's the details:
URL: https://webmail.123Together.com/exchange/
Username: [email protected]
Password: test
I would like ...
I'm working on a project which organizes many separate bundles onto a System Preferences-like screen, in categories.
First, how does System Preferences organize its pref panes into categories? A quick glance in the pref panes' bundles reveals no obvious category info.
Second, how should I organize my bundles into categories? Right now,...
Noob xcoder here and for some reason i cannot get the text macros to expand within xcode. For example if i type ifelse and then hit ^. it doesnt automatically expand the macro?? Likewise if i type fo and then ^. it will complete it to either for,fori etc, and will also pop up those options if i hit escape however i cannot get it to expan...
What does the error warning: check_safe_call: could not restore current frame usually indicate? I've read in other places that it's a memory issue. Is it always a memory problem?
I'm getting this error on the device (not the simulator). NSZombieEnabled shows nothing. If I Build and Debug, my debugger window shows nothing. The peak memor...
Hi all,
I am facing the same issue regarding restarting the server multiple
times. ( on: http://code.google.com/p/cocoahttpserver/issues/detail?id=8&can=1
)
I am doing it in the viewWillAppear and stop the server in
viewWillDisappear, then I also release the httpServer object.
The problem is when I do this multiple times the serve...
Is there a built in method, function, API, commonly accepted way, etc. to dump the contents of an instantiated object in Objective C, specifically in Apple's Cocoa/Cocoa-Touch environment?
I want to be able to do something like
MyType *the_thing = [[MyType alloc] init];
NSString *the_dump = [the_thing dump]; //pseudo code
NSLog("Dumped...
Hi, how do I do an ad-hoc distribution profile?
Been reading many links but I think there is something that I'm still missing.
Just can't figure out what.
Here are the steps that I took
1. a team member sent me his UDID
2. I add his phone to "devices" under the dev portal
Then this is what I did to create the ad-hoc profie
1. go to ...
I see this sometimes in xcode console.
...
I have static libraries A, B and C organized into Xcode projects. A and B depend on C. When I build an iPhone project that depends on A and B, I get a linker error that a duplicate symbol (from C) was detected in A and B. How can I organize these three static libraries so I can include them in other Xcode projects without experiencing...
I need to tell a uitableview to reloadData when something happens on another view (or at least that is what I think I need to do) how do I do it??
the uitableview is just an IBOutlet of a uitableviewcontroller object.
more details:
So i have an array of data as kind of a database and a user creates objects to populate the database on v...
I've just gone through some pain with iphone and xcode upgrades and keychain failures etc and decided to uninstall xcode completely and re-install. This fixed my keychain issues however the project I am working on appears to be linked to an old invalid provisioning profile.
I've deleted the profile from "Provisioning Profiles" in organi...
When using autocomplete to fill in method arguments, most of the time there should be a semicolon at the end.
It seems like there must be some keyboard shortcut to put in the semicolon (and maybe a newline) at the end but I can't find it!
Thanks.
edit: Maybe the question isn't clear, when finishing an autocomplete method the cursor lo...
I've only just started learning to build iPhone apps using xcode.
I'm slowly getting the basics, but I've come across a problem in Interface Builder.
When I create a new project using the Tab Bar Application template, I can't seem to do anything with the Tab Bar Controller in main.xib. When I double click the file, IB opens up fine, bu...
I use a statically linked library for Sqlite in an iPhone Xcode project. I am now trying to include a .C extension to Sqlite in this project. However, I am having trouble making the Sqlite in the build SEE the extension.
The statically linked Sqlite library works fine. Also the .C extension works on my desktop, and builds fine as a stat...
I've got a program, which loads the albums artwork in NSOperationQueue and it works like a charm.
Memory usage stays under 800 KB, but the overall allocated (and released of course) memory is about 50 MB.
My problem is memory rans out and the iPod player is killed by the OS. I've got a memory warning, but I don't have anything to relea...
See the screenshot below, this is the only leak the Leaks Instrument finds in my app. Seems odd that main is leaking since it's out-of-the-box. Is this common?
...
Due to some extraneous errors in a previous XCode project that wouldn't allow my iPhone app to run on the iPhone, I had to take all the code and files from what we'll call Project1 and build a new project called Project2.
I then filled Project2 with all the same files, not changing any code.
Next I had to recreate the Interface Builder...