iphone-sdk-3.0

How to upload images from iPhone app developed using Titanium

Hi, I finally landed up in developing an iPhone app using Titanium Mobile. Now the problem I face is, Im able to run the app, and the app also sends the image to the server. But Im not able to see the file that got uploaded to the server. I have pasted the iPhone app's code to send image to the server and also, the PHP file that would re...

Why need to call NSTimer again in this code, instead of doing repeats: YES?

- (void) applicationDidFinishLaunching:(UIApplication *)application { //set up main loop [NSTimer scheduledTimerWithTimeInterval:0.033 target:self selector:@selector(gameLoop:) userInfo:nil repeats:NO]; //create instance of the first GameState [self doStateChange:[gsMain class]]; } - (void) gameLoop: (id) sen...

UIApplication openUrl not working with formatted NSString

I have the following code to open google maps: NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@, Anchorage, AK",addressString]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; But it doesn't work and there is no error. It just doesn't open. ...

iPhone GameKit Problem: Clients detect other clients

Hello, All: I'm trying to set up a client-server architecture. I have one GKSession configured as a server, and two others as clients. When either client uses the sendData:toAllPeers:WithDataMode:error method, it sends it not only to the server but to the other client. I guess I could use the display name to exclude clients, so clien...

How to join a wireless network from an iphone

How can I search for Wireless Network (and connect it after and change settings ) within an iPhone Application? Is it possible? Any ideas would be appreciated! Cheers guys and gals Sam ...

How to load an external view in a NIB?

I have a ViewController that has its own NIB. I would like to embed that NIB inside of another master NIB. How can I accomplish this in Interface Builder and how do I reference it in code? ...

How to navigate clicking row to another UITableView ?

Hi. I am trying to show detailed UItable view when clicking on row. I used - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. // AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibNa...

When is a device token assigned?

I am trying the Urban Airship APNS development push server. When I run their sample app, I can't seem to get the Device Token. What needs to be done to make sure the token exists? I've checked the provisioning profile and the bundle id. Does my server need to push (through UrbanAirship) for the token to be generated for the first time? ...

iPhone: Utility Application - Open Flipside on startup

I have an application that I started with the Utility Application template. I'm using the Flipside for the Settings screen. I'm having the settings serialized to a file when the app is closed and deserialized when the app is opened. If there is no file to deserialize at startup, I want the flipside to be shown so the user can enter requi...

Way to update iPhone SDK without having to re-download Xcode?

Silly question - but is there a way to download the iPhone SDK without Xcode when Apple releases an update? ...

Can you hard code IBActions and IBOutlets in XCode rather then drag them manually in Interface Builder?

Is it possible to to hard code the IBActions and IBOutlets in XCode rather then drag them manually in Interface Builder? ...

how to change application language other than english

Hi, i want to write a application using hindi font. i just want to know how to use hindi font in application for user interface. i have a urgent requirement, please reply this question. Thanks and Regards Dee ...

How to add Timer to loop.

how to add timer to loop. i am making a urlConnection so i want that the loop execute for a time and if there is no connection it should exit. Does it work..... [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1f]]; Thanks in advance. ...

login example for iphone

hi. Can anyone get me a login page example for iphone ? ...

MPMoviePlayerController problems on iPad

Hello guys! I'm trying to use the MPMoviePlayerController class on the iPad. here's my code: multimediaPlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:path]]; multimediaPlayer.movieControlMode = MPMovieControlModeDefault; [multimediaPlayer play]; ...

Debugging in Objectiveflickr

When you authorize in objectiveflickr (like snap and run) the app stops so debugging stops, how do you keep on debugging when the program runs again? ...

UITableView titleForHeaderInSection prints headers to console twice then crashes

In the method below titleForHeaderInSection, for some reason the NSLog prints out the headers twice and then the app crashes in objc_msgSend. I can't understand why this would cause the app to crash? It would seem from research that crashes in objc_msgSend are caused by sending messages to already freed objects, but is that the case he...

Calling method after view has loaded

My iPhone app allows for users to type in their usernames and passwords so that they can login. When they login once, their usernames and passwords are saved so that users don't have to type it in again. My problem is, when the app starts again, it immediately starts logging them in, leaving the interface completely black. How would I go...

Obj-C crashes on substringWithRange message

The following code is making my app crash at line 3 without an error I would recognize or know how to deal with. Any ideas as to what I am doing wrong? NSInteger *match = [str1 intValue] + [str2 intValue]; NSString *strrep = [NSString stringWithFormat:@"%i", match]; label.text = [strrep substringWithRange:NSMakeRange(1,3)]; ...

Custom UITableViewCell with 2 UILabel's resized

I'm struggling to create a custom UITableViewCell (in IB) that has a UIImageView on the left, fixed to the top left corner, then 2 UILabel's adjacent to it, side by side. So the cell looks something like: +---------------------------+ | IMAGE LABEL1 LABEL2 > | +---------------------------+ What I cannot seem to do is to change the...