iphone

how to re-draw the table in navigation controller xcode

i want to update or re-draw the table in firstView,when i go back to first view from second view. i use navigation controller and popViewControllerAnimated is used to back to first view. i dont know how to call draw table function when it is back to previous view. thanks ...

What does a view controller do for me when orientation changed?

A simple iphone program generated by project template View-based Application, with several buttons, and I added following code: - (void) showInfo: (UIView *) view { NSLog(@"view bounds %6.2f %6.2f %6.2f %6.2f", view.bounds.origin.x, view.bounds.origin.y, view.bounds.size.width, view.bounds.size.height); NSLog(@"view frame %6....

How to split a string into sentences cocoa

I have an NSString with a number of sentences, and I'd like to split it into an NSArray of sentences. Has anybody solved this problem before? I found enumerateSubstringsInRange:options:usingBlock: which is able to do it, but it looks like it isn't available on the iPhone (Snow Leopard only). I thought about splitting the string based on ...

Weird UITableViewCell Loading Exception

In my app, I use a custom NIB to load my UITableViewCells. The NIB's File's Owner is set so the class is my View Controller. I then Link the UITableViewCell to the IBOutlet I put in the header file. It was all working fine, until all of the sudden it stopped working, and gets this error: uncaught exception 'NSInvalidUnarchiveOperationEx...

Iphone and Ipod touch share the same SDK?

Means all the applications on the apple store can be both used in iphone and ipod touch, is it right? ...

shout cast application in iphone

Hi all i want to make sample shout cast radio application for iphone. Can you give the idea where should i start. any documentation and sample code. thanks ...

How to get started coding In-App Purchase

Hi. I am working on in-app purchase. In my application we added the following code in appdelegate: #import "InappPurchaseAppDelegate.h" #import "MainController.h" #import "MKStoreManager.h" #import "MKStoreObserver.h" @implementation InappPurchaseAppDelegate @synthesize window; - (void)applicationDidFini...

Not Jailbroken - getting Provisioning is not applicable for product type 'Application' in SDK Device

Codesign warning: provisioning is not applicable for product type 'Application' in SDK Device - iPhone OS3.1'; ignoring.. Redownloaded my developer certificate, made a new provisioning profile, still getting this error. Searched the Xcode project and removed all lines referencing a Provisioning Profile, but that didn't seem to remove i...

Where can I get a touch event with phase UITouchPhaseStationary?

In these methods, I get corresponding phases: touchesBegan:withEvent: UITouchPhaseBegan, touchesMoved:withEvent: UITouchPhaseMoved, touchesEnded:withEvent: UITouchPhaseEnded, touchesCancelled:withEvent: UITouchPhaseCancelled. Where can I get a touch event with this phase: UITouchPhaseStationary? ...

how to display html data or CData in UIWEbview?

I have got data from the server like 'my name is &nbsp john'. I want to display in UIWebView like 'my name is john'. How to display it? ...

class declaration Problem in IPhone SDk?

Hi, i have declared one class such as #import "CalcEntryVC.h" @interface initialcontroller : UIViewController<UINavigationControllerDelegate> { IBOutlet BookmarkListTVC *bkcontroller; IBOutlet CalcEntryVC *calcentryVCController; } but when i declare in BookmarkListTVC.h as @interface BookmarkListTVC : UITableViewCo...

Access iphone setting preference

Hi, I would like to access smtp outgoing mail server address from global setting->mail->accounts->outgoing mail server. Is there any public API available now to get the user global setting values? Thanks Manoj ...

How to typecast ?

Sir, I have used the below function while(labelZ.text!=0) but getting the typecast error. ...

NSURLCache Memory Size is zero

I am having trouble caching NSURLConnection responses using a synchronous call. I initialize the cache in one class and then use it in another. Notice how the cache memory capacity gets initialized to 100KB but then is magically reset to zero later. - (id)init { if (self = [super init]) { // Creates a custom URL cache that...

Xcode Instruments: peak RAM of iPhone apps running in Simulator?

Is Activity Monitor (a.k.a. Memory Monitor) the only tool in Xcode Instruments that can measure the total app RAM usage of an iPhone app running in Simulator? Just that line showing momentary wired RAM? And how accurate is that versus iPhone hardware, especially given OSX paging i/o to VM? I'm seeing 7-8MB wired RAM figures for just th...

Finding the distance, currency, temperature units etc. for a country (iPhone)

Hi During the localization of my app I went through a lot of documentation, somewhere Im sure I read that there is a way to get a set of units that is linked with the locale. I believe it said something like "units based on cultural..." something. I would like to display temperature and distance in Fahrenheit and Miles for some count...

What is the color of labels in address book?

Does any one know the color of labels in the address book? For example when you open a contact you can observe the color of "phone" or "home" labels. So what is that color? Do you have any idea? Any help greatly appreciated. Thanks Prathap. ...

How do I write an iPhone/iPad app to take care of different screen sizes?

With the new iPad (which has a different screen resolution of the iPhone/iPod Touch), how do I set the application to automatically size appropriately to the desired screen size? ...

iPhone OS 3.2 on the iPhone?

I have edited this OS 3.2 question based on advice that it could infringe Apple's NDA which is something I have no desire to do. For what its worth I didn't reveal anything likely to upset their lawyers. And in my opinion the SDK is their IP, and therefore it's their decision regarding the terms we agree to when optionally downloading it...

activity indicator shold be displayed when navigating from UITableView1 to UITableView2

I am new to iphone development.I want to display an activity indicator when navigating form one UITableView1 to another UITableView2 and stops when the table is completely loaded.I am using xml parsing to get the cell content of UITableView2.Please help me out.Please refer to some sample codes or tutorial.Thanks. ...