iphone

Something is wrong with my plist file? But what is it?

Could someone please help me figure out what is wrong with my program, AND HOW O FIX IT!? Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'SECRET-Info.plist'. Please help! ...

saving text from uitextview to plist

for my application i am able to read the description of a place selected from the table row and display it in the uitextview. but what i needed to do next is able to save content edited by user in the uitextview to plist. need some guide because i had been searching for it but in vain..thanks ...

How can i stop the background thread from the main thread in Iphone NSthread?

I start a background thread from my program while my main thread is checking something. If the checking goes false, I want to stop the running background thread and start it all over again with my new parameters. I want to stop it coz the thread will be downloading images and if I doesnt stop it and call it again, it will take a lot of ...

iPhone application App ID disappeared from the Program Portal

I had a non-wildcard App ID in the iPhone Program Portal, and my current app in the store uses this App ID. However just recently I logged into the Portal and the App ID no longer exists. It is no longer present in the list found on the App IDs page. When I try to create an App ID with the same reverse-domain and keyword combination, ...

I am getting one error while using the mgtwitter engine my app

I am getting the error for using the NSImage in this function in my appcontroller like expected ')' before NSImage. - (void)imageReceived:(NSImage *)image forRequest:(NSString *)identifier { NSString *path = [[NSString stringWithFormat:@"~/Desktop/%@.tiff", identifier] stringByExpandingTildeInPath]; [[im...

UISlider Available Value

I would like to know how to reproduce the UISlider appearance of streaming audio/video in the native iPhone player. I have it figured out except how to reproduce the available section and the empty part for the section not available. ...

iPhone views programming

Hi ! I'm trying to have 2 views in my app, using 2 buttons on my home screen. For each of these buttons i've created a new class and added the following code to my view controller : ViewController.h : #import <UIKit/UIKit.h> @interface Gallerie2ViewController : UIViewController { } - (IBAction)switch2class1:(id)sender; // 1st button - ...

problem with image animation.

I have a problem with my image animation. here is the .h @interface Flash_ViewController : UIViewController { IBOutlet UITextField *textField; IBOutlet UIButton *generateFlash; IBOutlet UIImageView *theFlash; IBOutlet UILabel *testLabel; NSArray *letterArray; NSMutableArray *imageArray; NSTimer *myTimer; int runLoopTimes; int inde...

EXC_BAD_ACCESS with IBACTION

Hello. I have read a lot about this issue but mine still seems to be different somehow. So from what I understood, EXC_BAD_ACCESS occurs with memory management problems. The thing is, mine does not seem (! :)) to be there. The thing is, I simple added a button in IB, rounded rect, no image. The I hooked it up with an IBACTION I defined...

Need help understanding how IB-created UIViews are added programmatically

I am in a situation where one of my ViewControllers has many special cases and I need an elegant way of handling them. The general idea is that the bottom half of my View is identical in each case. The top half changes for each case. In accordance to DRY, I want to avoid make copies of my ViewController for each special case and changi...

NSURLConnection problem?

HI, i am using sample code from to handle Multiple NSUrlCOnnection from the link multiple url connection when i use CustomURLConnection as NSObject inwhich i specified one Method as to enable CustomURLConnection *connection = [[CustomURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES tag:tag]; through t...

Pop up Alert or Message to user

I want to pop up alert from one view controller to any of the controller classes. I dont know where and in which view user will be. if in back end some process is going on, want to inform user to wait for some time. Any help? ...

How to share a ManagedObjectContext when using UITabBarController

I have an iPhone application that has a MainWindow.xib holding a UITabBarController, which in turn has a UINavigationController and a custom UIViewController subclass in its ViewControllers array. The root view controller for the UINavigationController and the custom view controller are both loaded from other xib files. The app uses cor...

Server returns error 503

Hi, I've added a feature in my app that sends POST request to my web server. I've tested it and it does run fine. But at some moment when I tried to run again the app, then it crashes. I've found out the error 503 that says Server is unavailable. My question was what should I do to prevent my app from crashing when I've receive this err...

iphone: do a webservice request automatically

Hi.. I need to do an automatic webservice request every second in my application to maintain my 3g connection. Anyone got any pointers on how to do this effectively? Thanks! ...

iphone session management

Hi, How can I manage user sessions in an iPhone app? I get a username and password from the user on the first page of my app. The user may log out whenever he wants. How can I store session information in an iPhone app like any other web application? Is there any other technique for that? thank you. ...

Are startup costs for iPhone development more than (Mac + iPhone + 99$)?

I am going to develop an iPhone app, and I need to know what to expect of startup costs. I have never used Mac or any Apple products before, so I have no pointers as to where to look. Hope to draw experience from you guys. ...

Is NSFetchedResultsController also caching the record set itself, or just some meta data about table display stuff?

I fear my english is too bad for the documentation ;) it feels like they try to say, a NSFetchedResultsController also caches the record set itself, hence it may query some lame web source for half an hour and then the next time display that data super fast from the cache? Or does it just cache some data about "how to display the stuff"?...

Editing Core Data Relational Data

Hi All, I have User and Friend entities in my data model, being a one User to many Friends relationship. My ViewController, is instantiated with an instance variable for User (*user), and therefore I can access all friends by loading user.friends as friends is defined as an NSSet in my User object. In my code I load all friends in an ...

C Binary/Source Code in an iPhone XCode Project

What's the best practice to include existing C Libraries into an iPhone Project? I searched the Internet and actually found some pieces but nothing that explains the exact way to do it. I'm trying to include the following Citrix XenServer SDK Library. Any help is appreciated. Thanks! ...