iphone

Detecting the iPhone Device is flat

To detect the orientation of the phone when taking a picture I use orientation == UIDeviceOrientationLandscapeRight orientation == UIDeviceOrientationPortraitUpsideDown orientation == UIDeviceOrientationPortrait orientation == UIDeviceOrientationLandscapeLeft But these work if the picture is being taken from the side. How do I check ...

how to find latitude longitude from the address?

I am using MapKit for google map?How to find latitude longitude using address? ...

iPhone Help File Creation

Im finishing up an app and writing the help file. I was just going to do a pdf document and display it in a web view. Is there any standards for help on the iphone i should be aware of, windows has CHM, the html help file format. is there anything similar/comparable for the iphone. im working in 3.0 ...

How do I embed a quicktime movie into an iphone web app using dashcode?

I have a functional webapp that I have created through dashcode, but I want to add a video by clicking a button. Any idea on how to code a handler to do that or any sample code? thanks here is what I have but it wont do anything in the simulator function myClickHandlerVideo(event) { var vidElem=document.createElement("video"); ...

How to detect iPhone common settings?

I want to detect iPhone's common settings like settings about Mail, Contacts and Calendar. I want to detect this Sort Order and Display Order settings for a native contact book application. Is this possible and how? Thanks in advance. ...

How do you embed a javascript image gallery to iphone webapp in dashcode?

I have several pictures i would like to display in a javascript image gallery for my iphone webapp. Any ideas or sample code will help alot. ...

iPhone SDk : MPMoviePlayer - Is it possible to add fast forward and rewind functionality

Hi All, I would like to add fast forward and rewind functions to a MPMoviePlayer, but we have Play/Pause default options in the parent class. Is it possible to develop custom fast forward / rewind? if its not possible what would be the alternative solution to it? please help. ...

Access Photo Album from iPhone Code

Hi iPhone Apps like "Picture Map" access all the photos in my iPhone's camera album and display them without ever showing an Image Picker Control. Does anyone know how this is done? Thanks G ...

iPhone multitouch event can't get

Hello guys! What do you think, what is the problem with my simulator or I don't know, with my code. Here is the code - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] == 1) { // code } else { // code } } And when I simulate the double tap with the Option key in simulator, the code al...

how can i put the second line in the table view cell in objective-c ?

I am using the following code to add the next line in the same same but i am not getting the output. cell.detailTextLabel.text= [self.dataArray1 objectAtIndex:indexPath.row]; where dataarray1 is the following array. self.dataArray1 = [NSArray arrayWithObjects:@"sugar : 1 teaspoon", @"salt : 1 teaspoon",@"sugar : 1 teaspoon",...

iphone objectiveC alloc/release question

Hi, I am new to ObjectiveC language. I am having trouble understanding memory management syntax. My code is below: NSDate* someDate; someDate=[[NSDate alloc] init]; loop { someDate=[[NSDate alloc] init]; } will I have a memory leak here ? or the NSDate object returned is [autorelease]? Thanks ...

retrieve wallpaper system setting in iphone app

I would like to retrieve iphone wallpaper system setting and display the system wallpaper into my iphone app as background image. Is it possible or sample code? Thanks in advance. ...

What are the rules behind "X would like to use your current location" on the iPhone?

Using location-awareness on the iPhone triggers the "X would like to use your current location" - "Don't allow"/"OK". In the CLLocationManager documentation, it is stated: "The user has the option of denying an application’s access to the location service data. During its initial uses by an application, the Core Location framework promp...

Sorting an NSArray

I have an NSArray as follows: NSArray *directoryContent = [[NSFileManager defaultManager] directoryContentsAtPath:filePath]; The files at filePath are: 11.thm, 12.thm, 13.thm,...,Text_21.thm, Text_22.thm, Text_23.thm,... I would like to sort the NSArray in the order: 13.thm, 12.thm, 11.thm,..., Text_23.thm, Text_22.thm, Te...

UISegmentedControl makes UITableView slow/lag?

So I have a nicely working UITableView consisting of 3 rows (each including and image, and a varying number of text fields). Now the 4th row has a UISegmentedControl. As soon as I added it, the UITableView lags/jumps/skips. When I take it away again, everything is smooth. How can I add the UISegmentedControl and still have smooth scrol...

iphone sdk - networking problem

Hi guys I'm trying to run a simple server-client program on the iphone. The server and client are 2 different threads. Basically the server is supposed to send "hello world" to the client, and the client should print it. The server sends it like so: send(new_fd, "Hello, world!", 13, 0); The client receives it like that: if ((numbyte...

iPhone ComboBox ?

Hi guys. Is there a way to make ComboBox on the iPhone ? I know there is no standard controller for ComboBox. But I am thinking custom controller instead of this. Thanks in advance. ...

Where should I kill my AVFoundation AudioPlayer

Hi, My application consists of a table view. When a cell is touched the navigation controller moves to a tab bar controller and the "root" view of the tab bar controller has a button that plays an mp3. My question is this. When a user clicks the back button to go back to the table view and there is currently audio playing, how do I sto...

Hiding UITabBar when rotating device iPhone

Has anyone successfully hidden a UITabbar when rotating the device? I have one view in the UItabbar controller that i rotate (So effectively one tab that rotates) When this happens i want the tab bar to disappear... but nothing seems to work! Either the tabbar still remains visible Or it disappears along with the view Or the tabbar ...

How to dismiss a modal view as soon as it's displayed (without user interaction)

Hello everybody, I apologize if my question may result trivial or obscure. I am using a view presented modally. In order to achieve a little 'scenographic' animation effect, based on the value of a parameter, I wish to reach the following behavior: If value is 0, the view presented modally stays on display and allows user actions until ...