iphone

Advice on using vector graphics on the iPhone

A question for the seasoned iPhone developers, what is your preference for graphics in an iPhone app? I have turned to PNGs because I read that is the preferred image format and they are the most efficient format for the OS in terms of performance. However I had read you should try to use svg graphics so they scale up on the iPad. I star...

iPhone Camera pictures from UIImagePickerController are sideways

Hi, My application supports taking pictures from iPhone in portrait mode and upload to the server. However, the pictures taken are appearing in sideways once uploaded to the server. Please help! -KC ...

iAd in iphone application "'ADBannerContentSizeIdentifier320x50' undeclared (first use in this function)"

Hello, I am using iAd in my iphone 4.0 application but after adding the ADBannerView on view and when i try to set the ADBannerView properties using below code :- adViewTemp.requiredContentSizes= [NSSet setWithObject:ADBannerContentSizeIdentifier320x50]; I get the below error message:- error: 'ADBannerContentSizeIdentifier320x...

Get the zoomed frame of UIScrollView relative to original size

I have a UIScrollView and added a UIView inside it, when I zoom it, is it possible to get the CGRect of the zoomed frame in relation to the original frame? E.g. i have 800x600 frame, then i zoomed to {{50, 60}, {100, 100}} is it possible to programmatically get the zoomed frame? ...

Is there a way to generate more than 50 promotion codes for an iPhone app?

Question says it all ... is there a way to generate more than 50 promotion codes for an iPhone app? ...

iPhone App crashes on iPad (only)

Hi! I am making an app where the user gets daily book recommendations from an online database. This all works just fine on iPhone and iPod Touch, but crashes (SIGABRT) on iPad on launch (default.png is shown first). The error that is traced in the console is "Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NS...

Play Videos in MPMoviePlayerController from a URL ??

i am trying to play a video from a Url with help of MPMovieplayer which loads it in the Quicktime player while i want the video to play in my application only(no background mode)?? how can i achieve that?? will playing the video in a UIWebview instead of MPMoviePlayer work?? Also when QuickTime Player loads only Audio plays and no video ...

warning "initialization makes pointer from integer without a cast"

NSString *titl = [database executeNonQuery:@"SELECT * FROM numberquestion"]; gives warning "initialization makes pointer from integer without a cast" What is Wrong? Table "numberquestion" contains only one string "twenty" of type TEXT Thanks in advance Ur suggestions are most welcome. ...

Automatically FirstView controller calls second view controller in viewdidAppear.

Hi friends, I am using 2 views in navigation controller in a tab bar. In that First view controller in navigation should automatically call the second view controller without showing First view controller ( by pushing pushviewcontroller on viewdidAppear). The issue is when i click on the tab bar on first time it goes to Second view...

developing game using window or view based application in iphone

HI to all, I am new in game developing part .Can any one help me out how to develop the game .Because Till toady i am on the normal iphone application developing .Can i develop the game by choosing window or view based application .If yes then give me some kind of sample code or link for that. Thanks in advance ...

Hide UIAlertView programatically?

Hi All, Is there a way to hide UIAlertView programatically? Actually I have added a UITextField in UIAlertView and I want to perform the same operation as on "Ok" button press when a user hits the keyboard return key. Thanks Saurabh ...

What is the preferred way of calling REST services in MonoTouch?

Hi, Should I use traditional .NET methods or the MonoTouch .NET wrapper (1-1 mapping)? Rephrase: Should I use .NET´s e.g WebClient object or NSURLRequest (in .NET)? I can think of many situations where you have to choose between .NET and .NETified objective-c. Is there a rule of thumb here? Because I don´t think it´s obvious. BR ...

Any book on jQTouch?

Hi Friends, I am looking for a book on jQTouch that teaches developing web application for Smartphones. I have found one on Amazon: http://www.amazon.com/Beginning-Web-Development-Smartphones-Applications/dp/1453831053/ref=tmm_pap_title_0?ie=UTF8&qid=1284780488&sr=8-2 Has anybody tried this book? Thanks ...

How should I create Javascript that works on different platforms?

I'm working on a project that basically shall result in something like "source-to-source compiler" for javascript. Actually this is just the question if it shall result in some kind of compiler. Here's what I want to do: I write Webapps in a generic way that shall be transformed into mobile device specific apps. So basically it's just l...

Does using many nib files has a performance penalty?

Is it better to put several views in one nib file instead? Thanks, Reshef ...

Why iphone app start slowly?

Hi all, i'm newbie in iphone dev, i got an issue with running an app in my iphone device. I added my provisioning profile to xcode and build successfully in my iphone (iphone 3G). But, i don't know why when the app start, it takes 2 seconds to run the app.my app is a sample project create by xcode (file - new project - view based applica...

I have an iphone application which uses dragging of annotations on a MapView, is this possible is the iPad?

I am trying to use: - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)annotationView didChangeDragState:(MKAnnotationViewDragState)newState fromOldState:(MKAnnotationViewDragState)oldState And was getting errors when building this for the iPad, but I have since realised that it is iOS 4 specific, so it won't work ...

iphone web based app: link clicked in aspx page not taking control to the next page

Hi, In iPhone web view i am accessing aspx pages hosted on some remote server. When i tap a link on the page , control is not going to the next page. If I try to access the same URL from iPhone Safari browser( not through iPhone web view .i.e iPhone app) its working fine. Can anyone tell me reason for such behavior. Thanks in advance...

Transition between a standard view and UITabBarController view?

What is the cleanest way to set up a structure where you have an initial standard, full screen UIView, which transitions to a Tab Bar view? ...

How to reproduce Three20 Slide Up To Refresh feature ?

Hi ! I would like to add this to a projet, but I don't want to add the full Three20 framework for a simple feature. How the framework does to always hide the first row, and to detect when it's sliding up ? After that, I suppose a callback url can just be called to refresh the table view. Thanks ! ...