iphone

how can i make my own map in iPhone ( not using google map)

i've got the trouble when developing iPhone apps. i want to make my own mapkit, (include annotation, title, and subtitle) with my own map too, i mean without using google map, i have my own map. it's possible to doing like that.??? if yes, how it could be.?? please someone explain about it, i've been confused with that task.. :( thnx bef...

iOS4: UIImagePickerController behaving weirdly when presented modally

I'm trying to present a UIImagePickerController from a UITableViewController subclass using the following code: UIImagePickerController *picker = [[UIImagePickerController alloc] init]; if(library) picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; else picker.sourceType = UIImagePickerControllerSourceTypeCamera;...

Generating a DTMF tone doesn't work - application crashes!

Hi, I want to generate a custom DTMF tone and play it on the iPhone. In order to do so, I have created and allocated a memory buffer with a custom tone (ptr). Now I want to create a NSData object, initialized with the memory buffer, and pass it to AVAudioPlayer using initWithData:error: instance method. I wrote the following code, but ...

How to copy log file from iPhone to desktop PC

Our app is going to move for testing. We need to debug for finding defects. Is there a way to have a log file on iphone, put all the methods calls on to it and copy it back to desktop pc when required? I understood from other threads that logging is possible. The only pending part is copying the file from iphone to desktop PC. Is it pos...

What version of GLSL is used in the iPhone(s)?

I know that iPhone uses OpenGL ES 2.0, but I don't know the version of the underlying language GLSL. Is it 1.3, 1.4, 2.0, other? Thanks. ...

will apple reject apps that make use of the device id.?

Hi friends.. I have developed an app that make use of the iphone device id and sends the same to a webservcise, as primarily my app uses device id to prevent unauthorised device access. But i am in doubt whether apple will reject the app bacause of this...? Pls can anyone clarify my doubt... ...

Displaying CAEAGLLayer in a UIView or CALayer

Hi, Rather new to trying to get OpenGL ES working on the iPhone, but I've created a working demo from an OpenGL template and wanted to add it to another App which is a standard UIViewController App. After searching around it seems that I can't addSubview a CAEAGLLayer to a CALayer aka UIView. How would I go about doing this? Or am I com...

How would I convert a series of JPEG images to an uncompressed AVI on the iPhone?

I'm trying to convert a series of JPEG images into a simple uncompressed AVI movie. Does anyone have any suggestions for how to do this? ...

is it possible to see contect of Documents folder on iphone from debuger console

i want to see the content of Documents folder from console , i can see for simulator but its not working for device my path is /var/mobile/Applications/3E79C7B3-2639-477F-B355-1A3C70D4ECBE/Documents but how to check this ??? ...

Does it make any sence to release ivars in appdelegate's dealloc?

Hi, I know that probably it's a good practice to release appdelegate's ivars in its dealloc method, but practically, does it makes any sence? As I understand the appdelegate of an iPhone app will live in memory while the application is running and all memory will be freed anyway when it's closed. Thank you ...

The best way to keep global variables in iPhone app

Hi everyone, I'm new to iPhone development so want to ask, what is the best way to keep global variables and constants which can be accessed by many classes? Shall I keep them in app delegate or there is a better way which I don't know? Thanks ...

Does the iPhone use the .vcf to store the address book data?

Hi, everyone, I want to ask a question about the iPhone address book. I am writing a program, it relates to the CardDav server and the .vcf file. I want to use the NSURLConnection to connect the server and download the .vcf. However, I am not sure that the iPhone can read and write the .vcf file or not. One thing I can sure that is th...

RESTful webservice in iphone

How can i use Restful webservice in iphone instead of soap? ...

UIButton Tag overwrittened

How do you make sure that the UIButton tag is not overwritten by the previous tag? for example: (IBAction)addButton:(id)sender { if (buttoncount == 2) return buttoncount++ UIButton *newButton ... // Should I change this to setTag? newButton.tag = buttoncount; // This line doesn't seem to work newbutton.tag = newButtonCount NSInteg...

is it possible to replace images in an array dynamically

hi i am new to iphone.what i am need is to place a 20 images names in an array . if i place those images in an array whether it is possible or not to change replace the first image by last means changing the positions of images dynamically if it is not possible pls suggest in what way i can done this. pls post any sample code thank u ...

Save the application state when it has been deleted from the background

Hi all, I am using following functions in my App delegate - (void)applicationWillResignActive:(UIApplication *)application { NSLog(@"applicationWillResignActive"); } - (void)applicationDidEnterBackground:(UIApplication *)application { NSLog(@"applicationDidEnterBackground"); } - (void)applicationWillEnterForeground:(UIA...

Apple Push Notification Service using Urban Airship in iPhone

Hi friends, I have implemented Apple Push Notification service using Urban Airship and successfully received the notification in my application. If i receive the notification the alert view comes, If i click the view button in alert view, it goes to start the application. Generally it happens in APNS. But my client wants, If any updates...

iPhone Phonegap based app load External website made of componentone

Hi, My Client wants a native iPhone App that displays their mobile site optimized for iPhone developed using asp.net and ComponentOnes Studio for iPhone. i was planning to use a PhoneGap app which calls an external URL using JavaScript and do it after showing the splash screen. but according to phoneGap FAQ its most likely to apple to ...

iPad: Changing the view according to the content when orientating (landscape / portrait)

I understand that Apple will do a kind of autoresizing thing when iPad / iPhone change orientation and you can set views' autoresizing masks. But what if the views' resizing is not that simple? for example, I have a TableView and each cell has different number of letters. Assuming in Landscape mode, the TableView has perfectly built s...

How to convert motion sensor data from Iphone to Android?

I have some motion sensor samples that were recorded with an Iphone. Now I'm into calculating a distance between a user gesture and the gesture that was recorded on the Iphone. My problem is that the sensor data on the Iphone is represented in a different way then the android sensor data. If i don't move the Iphone I get data between -...