iphone

Change label property when cell selected

Hello, I am using a custom cell with multiple labels contained in it. I would like to change the text color of all labels to white, when the cell is selected. How would do this? Appreciate any help. ...

Core Data: How do I store a CGImageRef or custom data types?

Hi, my iPhone application should store some data persistantly by using Core Data functionality. Here is a code snippet: NSManagedObject *entity = [NSEntityDescription insertNewObjectForEntityForName:@"anEntity" inManagedObjectContext:self.managedObjectContext]; // ... CGContextRef context; // ... [entity setContext:context]; NSError ...

iphone sdk bluetooth application test

i developed one bluetooth application...( i mean ,i got it from internet) ,, this application could i test in my simulator.. ? when i execute this application in simulator showing only one message box,, " LOOKING FOR OTHER iPHONE OR iPOD TOCUH" ( my computer is mini mac. there is bluetooth), if we test it in my iphone ,,, does it ...

iphone application can not able to load images from album

hi i have develop small iphone application in which user can choose images from image picker and that image will be appear on view. when user first select image i have saved image name to database and with that name save that image to resource folder. so when a main view appear i searched for images from resource folder and displa...

How do I get the current date?

How can I get the current date, and format it like "20/12/2010"? Thanks in advance..:) ...

activty indicator not displayed untill full page is loaded

I am new to iphone development.I want my activity indicator to be displayed until the full web page is loaded.Please help me out with some sample programs or blogs.Thanks webView = [[UIWebView alloc] initWithFrame:webFrame]; webView.backgroundColor = [UIColor greenColor]; [second.view addSubview:webView]; webView.backgroundColor...

How to make automaic changes in the Orientation?

I want to change the Orientation according to my application so how i can do this.Actually i am new in this field. ...

iPhone : Getting a value back from views

Hello, From the view A I open the View B which contains categories in a uitableview, when I select a category I open the view C which contains subcategories for the category (using the CoreData persistence ) in a uitableview, when I select a subcategory I open the view D which contains all my product (using the CoreData persistence ), w...

Where's the NSURLConnection protocol?

The documentation of NSURLConnection says that there are delegate methods like connection:willSendRequest:redirectResponse: But the documentation doesn't mention which delegate protocol to implement. Well, I assume there just isn't any protocol for the delegate, so everything is just optional? ...

How NSZombie works when it finds error on iPhone SDK

Hi everyone, if set to on the NSZombie, it tells me that I'm releasing an object which is already released and gives me the memory address, very helpful... BUT I can't see which object it's... because the app stopped working... any help? thank you ...

How to access EAAccessories?

eaManager = [EAAccessoryManager sharedAccessoryManager]; [eaManager registerForLocalNotifications]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(gotDevice) name:EAAccessoryDidConnectNotification object:nil]; [eaManager connectedDevices] is always empty. How can I pair to a accessory? ...

Downloading a file from url and saving to resources on iPhone

Is it possible to download a file (i.e. an sqlite database file) from the Internet into your iPhone application problematically for later use within the application? I am trying using NSURlConnection, but not able to save the file. Here is the example code I am trying: - (void)viewDidLoad { [super viewDidLoad]; NSString *...

Performance metrics for iPhone app?

Is there a good way to record performance metrics (like number of times a function is called) for an iPhone app? I can't find any decent performance tools for it. ...

UITextField - Switch Between Keyboard and UIPickerView

Hi all, I'm working on an iPhone app that uses Core Data. One of the view controllers allows the user to edit information about coffee, and it has a UITextField in which the user can enter one descriptive "tag" for the type of coffee. I'd like to set up the UITextField to show the keyboard if the user clicks into the main area of the U...

Is it possible to control the network connection type on the iPhone?

as topic, I want switch the network connection from 3G or WIFI via iPhone SDK , does it is possible ? ...

iPhone: Once I have redirected NSLog to a file, how do I revert it to the console?

I'm using: #if TARGET_IPHONE_SIMULATOR == 0 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console.log"]; freopen([logPath cStringUsingEncodin...

iPhone application that submits info to a website and gets results back

Hi, I am new to iPhone development, I wonder where could I find: 1) the best tutorials to start iPhone programming 2) info or code about how to submit info to a website (example search query to google) and get data back (show summary of query results on iphone) Thanks ...

Is there any way at all that I can tell how hard the screen is being pressed

I want to find the pressure of the touch. I just don't know how to accomplish that result with out jailbreaking it and getting the raw touch data. Does anyone know How I would do this? ...

Leaks on app exit.

I am wondering is there a way to find out memory allocations that dont get deallocated on iphone application exit or it's termination . I have been using instruments fixed most of leaks that I had in my application, but i am worried that there are still some allocation that i didnt release. Thanks ...

Alternative to NSSetUncaughtExceptionHandler on iPhone

I'm trying to make a general error handler for an iPhone app that brings the user to a recovery screen whenever any general error is thrown in the application without putting a try/catch block around every single method in the application. Using NSSetUncaughtExceptionHandler doesn't work because the application terminates after the hand...