iphone

How to create an MKMapView?

The documentation doesn't talk much about it, and there seems to be no init method for this? How would I create one and set the longitude and latitude or region to display in the map view? ...

iPhone Application button with URL POST method

Hello all, I would like to ask about the button and the url post method in iPhone application. In my program, I want the user to click a button, and then a url will be called by POST method. For the url, it may need to redirect to somewhere (302 or 303) etc and final is 200. I have complete the button and the success page, however, I...

detecting touch events on UIWebview??

i am loading a image onto my uiwebview and when the user clicks the image i have a link which i want the user to be redirected to but i am not able to find any solution regarding it?? i tried to use (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest but it can only be for links and not for a image as when i tou...

MPMoviePlayerController, slow/crashes on iPod Touch

I am building an application with iPhone SDK 3.1.3. All I am trying to do is play a 2 Minute(11MB Filesize video) and loop it. I have code that works find on the simulator, iPhone 3G & iPhone 3GS, but not on an iPod TOuch 8GB. When I run the code on the iPod Touch, it gets to the line: movPlayer = [[MPMoviePlayerController alloc] init...

Iphone UIsearcbar - Problem keyboard hides the searchbar

Hi, I have a Uisearchbar in the bottom of view. When i try to do a search the keyboard pops up. Because the searchbar is in the bottom the keyboard hides the searchbar. Can anyone please help me on how to avoid this problem in code Thanks in Advance ...

AsyncSocket Delay

So I'm writing an application for my iphone that networks to my computer running a java application using AsyncSocket. On the java side, it should print out "Ok" when the iPhone connects to the server. I also added a sleep() command to the iphone side, so after it connects to the server, it sends some data and then sleeps for 5 seconds. ...

Problem with filedownload using asihttp

Hi all, I have a problem with downloading file using asihttp. Downloading is working fine for me except that the folder I have created as downloadDestination is getting replaced by the downloaded file and I'm not able to download any new file after that. How this issue should be addressed? Thanx in advance. ...

is there any way to call any method of 'send' button on MFMailComposeViewController in iPhone

is there any way to call any method of 'send' button on MFMailComposeViewController in iPhone ...

setFetchLimit and sectionNameKeyPath on iPhone OS4 (XCode 3.2.3) cause crash

Previously, on iPhone OS 3.2 with XCode 3.2.2 this used to work fine. I have created a small test to prove it. An NSManagedObject with 2 attributes, "group" and "vaue". Both strings. When setting up an NSFetchedResultsController to be used in the TableViewController, I set up the setFetchLimit on the request and I set the sectionNameK...

does wi-fi effect GPS accuracy

Hello i want to know if wi-fi effects GPS accuracy if i used Gps using CLLocation manger in my application ...

[iPhone] Understanding protocol implementation with example UIAlertViewDelegate

There are two classes A and B : @interface A : NSObject < UIAlertViewDelegate > { ... } @end @interface B { ... } A will use B via creating B and use it. In B, there are chances to create UIAlertViewDialog, and do some user interactions. I think that it is reasonable to implement clickedButtonAtIndex in class A, because A is de...

How to check if iPhone app was installed before?

Is there a way to check if my app was installed before? My app should offer half a year free of its services. Expandable via In App Purchase. I want to prevent the user from deleting my app and just re-downloading it. I know there is a way to determine if my app is already installed (updates) (e.g. via variables in the NSUserDefaults). ...

Multi-tasking with AVAudioPlayer

I have an audio app using AVAudioPlayer build for iPhone 3.x, now I would like to harness the multi-tasking capability in iOS 4 such that it can play music at the background. I tried to search for sample code but no luck. Can anyone help showing me how to enable AVAudioPlayer for background playing in iOS 4? thanks. ...

conversion of string to integer

i want to convert to convert nsstring to integer in objective-c can anybody help me in solving out this problem. ...

Is that stable multiple versions of iPhone SDK on single Mac?

I'm trying to make an app which compatible with 3.x and 4.x iOS. But SDK 4 supports only SDK 4.x and iPad, there is no 3.x SDK for iPhone. So I'm considering installing 3.1.3 SDK on my main workstation with 4.x SDK. I know it's possible to install multiple SDKs on a Mac, but I'm afraid any unknown problem by this. Anyone who experience...

What is a better way to go for a simple file upload and download: NSURLConnection or ASIHTTP?

Hi all, I want to include simple file uploading and downloading [any type of file e.g. .pdf, .pptx ,.txt etc] functionality in my application. What is the better way to opt for using asihttp or NSURLConnection? Thanx in advance. ...

Macbook and iPhone development - advice needed

Hi, I have not used MAC OSX before, but I wanted to buy one for a very long time. Recently, i managed to buy one!!! Quite an investment I guess :). I am very excited about iPhone development and I want to get my hands dirty as quick as possible. My doubt here is, do I need to buy a iPhone really to start the learning activities or any...

iPhone, XCode and Source Control

Hey, Up until recently I was working alone on all of my iPhone project code. I recently added another member to my team and was wondering what's the best way to work on the same project together? Where to put the actual code online (right now we're using dropbox)? Which source/version control tools are best to use with small teams worki...

iPhone App Login Screen + MySQL Database

Hi guys, I'm developing an application where I have a login screen. I'd like to have the user credentials stored in a MySQL database. I have a database created with id, username and password fields. I can run a select statement and the console shows the results. I was wondering how would I go about making a login screen with usernam...

Is there any charting library for IPhone can build a chart like bloomberg financial's chart?

Dear all, I am finding a charting library for IPhone which can build a chart similar to Bloomberg Financial' chart but still not find out yet, Core-Plot is a powerful library but it is not support zoom using multi-touch. Is there anybody know about this please help me! You can watch this video to know about Bloomberg's chart: http://ww...