iphone

iPhone Development: Simple View Based Application

I've been asked by a client to develop an application that will allow the user to navigate between a series of views. It's best described as a book, with an interactive contents menu. I know the VERY basics of Objective-C but I have no idea how the views work together, how could I jump from one view to another at the click of a button? ...

UITableView sections text alignment

can someone help me with text alignment to the right in my uitableview sections ? the defult alignment is left. if the only way is to build custom header i will appreciate for code example. ...

OpenGL ES color picking on the iPhone

I'm looking into 3D on the iPhone, I have managed to get a 3D cube on the device but would like to add interactivity such as touching one face fires a specific event and an other face a different event. I'd rather steer clear of ray picking as this adds extra complexity that I do not want in my app. I've read up on quite a few color pic...

CATransition page curl from top

Hello everyone, I wanted to know if anyone managed a pagecurl from the top using the CATRANSITION. I have the following : CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.35]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; animation.type = @"pageCurl"; animati...

How to mark a point on an UIImageView so as to know the position of that particular point at any time when it's rotated?

I have an image (see below) that I rotate using this code. Somehow I need to find out how to find at any moment where is the little bar when rotated, could someone guide me please? float dx = locationT.x - imgVVolume.center.x; float dy = locationT.y - imgVVolume.center.y; CGFloat angleDif = 0.0f; movedRotationAngle = atan2(dy,...

Download Request - iPhone SDK

Hello everyone, I am trying to create an app where the user clicks on a download link through a UIWebView and it will present a pop-up saying "do you want to download this file". I just don't know how to get the download request when the user taps on a download link. If anyone knows how to do this please leave a reply. thanks, Kevin ...

reading image from document folder

hi, if i place a image.png file in my resource, iphone will be able to read it. if i place a image.png file in iphone document folder it doesn't read? i am sending the image over from my server, into the document folder. no problem with that. i thought iphone will auto find the image file either in resource folder or document folder? ...

How to persist data using archiving function on the iphone?

Hello, I am having trouble with persisting data. Desired Behavior: I have a text field defined in the view that captures user input. When the submit button is clicked (touch up inside), I expect to write that data to a mutable array. As of right now, I am going to archive that mutable array upon submit, but have also played with ar...

High Resolution images in a uiwebview

I have a webview that displays an image, as shown in the code below. The bundle also has a [email protected] with dimensions of 128x128 for use on the iPhone4. The [email protected] never shows. Is there a way to display either/or depending on whether it's an iPhone or an iPhone4? <img src="DGT64.png" width="64" height="64" align="left" style=...

Logging in a text file iPhone

Hi, I have a score system and I would like to log all scores in a text file separated by line breaks. Here is my current save code: NSData *dataToWrite = [[NSString stringWithFormat:@"String to write ID:%i \n",random] dataUsingEncoding:NSUTF8StringEncoding]; NSString *docsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDir...

Recreated iphone distribution certificate - want to configure existing Provisioning Profiles to use new cert?

My iphone distribution certificate was due to expire. I clicked the button next to the error message on the distribution certificate tab to recreate it, and followed the instructions to create a new certificate. (Note I used a new CSR - might this be a problem?). The certificate was created sucessfully, and I want to move my existing p...

Going Back after connectionDidFinishLoading

Hello, I have a question, (Basically same as this one which remained UN-answered I'm writing some methods that call a JSON API, and receive a response, each method will create an HTTPRequest, but the data received will not be available in the method, but will be available in connectionDidFinishLoading. How can i use the data now? I h...

Glowing Animation

Hi, I want to build a glowing (pulsing) animation on a simple UIImageView. The ImageView will grow a little bit bigger, then goes back to original size. I used following code: - (void) doCoolAnimation { [UIView beginAnimations:@"glowingAnimation" context:nil]; [UIView setAnimationRepeatAutoreverses:YES]; [UIView setAnimati...

Iphone SDK:A bug or my logic error ,tableview can't scrolling down ????

It's happened Intermittently Check my code and compare the print result maybe someone can know what's wrong with my code... 1.I load a plist data from an URL - (void)viewDidLoad { NSURLRequest *theRequest=[NSURLRequestrequestWithURL:[NSURLURLWithString:@"http://www.envolab.com/envotouch/ios_status_req_test.php"] ...

''Install Prohibited" iphone SDK

I am a registered Apple dev with the certificates, and mobileprofiles that i need. I have made several apps in xCode that I would like to test on my 3GS, I have registered my 3GS as one of my allowed devices but it still will not install giving the install prohibited error. The Xcode is set to same profile as my iphone has. Just dont ...

iPhone and anyother Smartphone peer-to-peer communication over bluetooth

Hi, i want to build a simple bluetooth chat program that can do a 2 way chat with 2 mobile devices. i know that i can use gamekit to develop such application for iphone and ipod touch. But i want to know is, is it possible for other smart phones (running my application) to discover and communicate with ipones and other devices as wel...

Hide StatusBar from MPMoviePlayerController

Hi everyone, I've been struggling with a very annoying problem all day long and I hope I could find help on this board. I'm using an MPMoviePlayerController to play a fullscreen movie on iPad and I can't figure how to remove the status bar which is always displayed despite all my efforts to make it go to hell. Here is the code of the ...

UIScrollView not zooming at all

Hi, I made a UIScrollView, added a UIImageView to as a subView, set the viewForZoomingInScrollView: method to return the subView, set the UIScrollView's delegate to self in my viewDidLoad, set my ViewController to be a UIScrollView delegate, set the maxZoom to 5.00 in IB, and I still am unable to scroll I'm using the iPhone simulator, p...

@class May I know the proper use of this.

Anyone can point out a documentation or a detailed discussion using @class. I've been using this but haven't really fully understood it. I want to learn more about it and fully understand it. Thank you in advance. ...

CoreData - How to set date and time independent of each other?

I have a coredata attribute called visitDate I want to set the date and time independently of each other using separate pickers. I realize that when I set the time, I need to grab the existing date, month and year of visitDate, but only set the time from the NSDatePicker. Conversely, when I set the date, I need to grab the existing ...