iphone

Developing app for both iPhone and iPad

How should one proceed if he has to develop the same app on iPhone and iPad? Should all View files be separate with same controller and Model files? ...

stop loading action for button in web view is not working

when i tap a button in web view which is connected to action-"stop loading" of that web view is not working.. its not stops loading even after i press a stop button which is inteded for stop loading content .... ...

How to get a xml file from iphone's email and use it in my app

Suppose i want to open an xml file which i have in my email through my app. How should i go for this. Thanks, ...

UIApplication sharedApplication openURL does not work with File:// (load local pdf file)?

This does not work NSString *myPDF = @"file:///Users/sm/Documents/doc.pdf"; This works NSString *myPDF = @"http://www.site.org/doc.pdf"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString: myPDF]]; So should I create a web view and load the pdf on the web view? ...

Converting application to ViewController

What would be the simplest way to convert an existing application with xib files based on UIWindow into a self contained view controller? ...

how i can save my data file to my webspace through my iphone app

I want to save the data which i gather through my iphone app to my webspace in xml format so that the other user's can access it and see the data. Thanks, ...

how to add individual elements in an array

hello i am trying to add individual integers to a certain array my array is in this form array= number +1 how can i make lets say number be a array = 2 +3 +1 where 2 and 3 are two different distinct obhects that should be commutatively added. i hope i am clear. I dont want the numbers to be added so that the aboce equations would equal ...

WWDC 2010 videos

Hi, Are these WWDC 2020 videos free or paid? I have a valid apple ID, do i still need to pay for them? What is the link from where I can download these videos? ...

UIView notification when modal UIImagePickerController is dismissed?

Is there a way to call code when a modal view is finished dismissing? EDIT: I'm sorry, I didn't clarify earlier. I'm trying to dismiss a UIImagePickerController and then show a MFMailComposeViewController and attach the image data to the email. When I try to call [self presentModalViewController: mailController] right after [self d...

How to repaint a UITextView for iPhone 3.x after updating data programatically

In my app I update a textView progamatically. I actually loop through a dataset from a SQLITE3 DB and show a specific text for a given time. Then I would like to show the text from the next dataset record and so forth. I have been browsing through all kind of forums and the apple doc as well, but could not find anything like a repaint, r...

Custom UITableViewCell subview layout

I'm creating a custom UITableViewCell, similar in style to UITableViewCellStyleValue1 but with an editable text field on the right side instead of the detailTextLabel. I'm a little confused on how to size the edit field properly. I want to take the length of the textLabel into account, as well as the size of the contentView, and be abl...

How many times do I release an allocated or retained object?

Hi, I am making an iPhone game. I want to release all the object that have been allocated or retained. In the dealloc function I am releasing all such objects but then realized sometimes i end up releasing objects when they have not been allocated yet. So I figured I need to check if its retainCount is greater than zero or not before i ...

Provisioning profile and developer certificate

At what stage of a iPhone app development do we need provisioning profile and developer certificate? What are their importance and from where we get them? And how do we distribute our iPhone app for testing by other users and finally to end customers in App Store, using provisioning profile or developer certificate or something else. Ple...

App Quits, No Stacktrace and Intermittent: How to debug? (iOS)

Yesterday I ran into a situation (which I resolved by studying my code a lot) where the app would start and then blow up at some point in the start sequence. This would be a breeze to troubleshoot except that there was no stacktrace whatsoever. Debugging and stepping through line-by-line caused the problem to go away, and it was intermit...

precompiler for ipad

HI all, In xcode I am trying to load different nib file in case I am using iphone/ipod or ipad. I have a Define.h file with all enum and constants in it, so I would like to put in there a kind of (obviously wrong because I don't know how to do it): #if IPHONE // <-- can I intercept the Active Executable here ? #define MY_VIEW @"Tab...

Proper way to start/continue runloop

While I usually make use of NSOperation for having a thread do a short task/operation, I'd like to have a long-living dedicated thread that is always available to process certain operations. For this, I allocate a new NSThread and use the initWithTarget method: - (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument...

Getting debug information from your users

If one of your beta testers has problems with your app crashing, how do you usually go about debugging this if it works fine for yourself/other users? Is there a way to have debug information sent to you? ...

switching between silent mode and ringmode in iphone

hi all is it possible to switch from silentmode to ring mode (vice versa) in iphone programatically? Thanks in advance Regards appleDE ...

Using mod operator in iOS app

I have an NSTimeInterval that is stored as a double. I would like to get the amount of minutes that are inide of the second value using the % operator. minutes = secondValue % 60; where minutes is declared as double minutes The result is that XCode says "Invalid operands to binary %" Thoughts? ...

Is rendering views to UIImages the correct way to go about animations in the iPhone SDK?

Hey all, I've been using Core Plot to draw some charts for an iOS app I've been developing. While core plot is excellent as a charting application, it's a performance hog when it comes to any kind of user interaction. To get around this, I started doing a lot of the following: UIGraphicsBeginImageContext(view.bounds.size); [vie...