iphone

How to set the cell.imageview frame

I have table view in which I want my Image view to reset the frame I used the following code: [[cell imageView] setFrame:CGRectMake(0,0,32,32)]; But nothing is working Please let me know how to resize the default imageView section Thanks ...

syncing data with server

Hi all, I'm trying to sync data from my application onto the server. I'm very new to this kind of work. For this i wrote a small web service in php, insertData($_get['username'], $_get['password']); ?> Now, i'm not able to figure out how to call this web service and how to send the 2 variable values to the insertData function from th...

Animating a falling feather using Core Animation on the iPhone.

Hello Animators! The scenario: The user has touched and moved an image to a certain position, he/she then release the object. It should now in a realistic way fall to the bottom of the screen, see this video for some inspiration. The touching and dragging parts are already implemented using: - (void)touchesBegan:(NSSet *)touches withE...

Urgent:-Steps after installing certificate on server for push notification?

I have exported and combined apns-development certificate put it on root of server. Now how do I know if the server supports ssl? How do I connect to apns and send device token and json body for push notification? Need help urgently. I have godaddy's hosting plan. ...

Using the address book UI with a custom data?

Hi, Is there anyway to use the great address book UI with custom data? From looking through the AB documentation all you can do is to use ABAddressBookRef ABAddressBookCreate ( void ); But this obviously creates a reference to the contacts on your phone... is there anyway that I can create a reference to say an array which I co...

iPhone: moreController change frame of UITableView

hi all, i want to change the frame of tablview which is within the morecontroller tab of UItabbar please suggest. ...

UITextView memory leak

Hi, Can somebody can please verify that they can also reproduce that memory leak. Create a new "Utility Application". Open the FlipsideView.xib and add a UITextview. Using the inspector, uncheck "Editable" and check "Detects Phone Number" and "Detects Links". Run the app using the Leak instrument on an iPhone. Flip between the MainVie...

Download and store file on iphone

hello i want to replace my sqlite DB stores on iphone by a sqlite which is on my server for an update. how could i do that? i can download it and get it with an NSData object but how do i store it on the iphone and then replace the old one ? thanks ...

iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!

I had a bunch of images in my Xcode project. They were originally added without choosing "Create Folder References for any added folders". So I removed the references and re-added as per these instructions http://stackoverflow.com/questions/1401338/include-a-resource-directory-hierarchy-into-app-bundle Unfortunately, Interface Builder w...

List of iPhone Applications that support openURL:

Is there a definitive (or otherwise) list of schemes that iPhone Apps support via: - (BOOL)openURL:(NSURL *)url ...

how to play video in Open GLES

I am having problem with MPMoviePlayer( i want to customize the MPMoviePlayer). Can anyOne tell me how to play video using Open GLES in iphone??? I want to do buffer level handling of the video streams.... Thanks in advance ...

OpenGL ES iPhone - drawing anti aliased lines

Normally, you'd use something like: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); glLineWidth(2.0f); glVertexPointer(2, GL_FLOAT, 0, points); glEnableClientState(GL_VERTEX_ARRAY); glDrawArrays(GL_LINE_STRIP, 0, num_points); glDisableClientState(GL_VERTEX_ARRAY); It looks good in t...

Persisting CoreLocation

I have a need to store the current location to 'disk' on the iphone if the application I'm writing is terminated. Then, when the app starts again, I want to restore this information. However, the CLLocation coordinate property is read only. What can I do to save this information between program invocations (and reapply it to a CLLoca...

Sqlite3 alternatives for iPhone

Are there any other database engines that could be used on the iPhone, besides sqlite3? Something like textDb is for PHP, single-file and no server. ...

UIView Does Not Rotate

I have the following code in a UIViewController Notepad *notepad = [[Notepad alloc] initForNewTopLevelTask:0 andDAO:self.dao]; [self.navigationController pushViewController:notepad animated:YES]; [notepad release]; The initForNewTopLevelTask:andDAO: method is: - (id) initForNewTopLevelTask:(int) theTableSize andDAO:(DAO*) aDAO { ...

How to determine image coordinates for a large cropped image within a UIImageView?

With regards to the iPhone SDK: I have a 512 x 512 pixel .png image, and I want to display it within a 200 x 200 pixel UIImageView WITH cropping (at native resolution, without zooming, fitting, or rotation). Is there a way to determine the image's coordinates that are visible inside the UIImageView? For example, if the image in the e...

iPhone SDK: How do you fast forward and rewind video?

Hello, Is it possible to fast forward and rewind a playing video in the iPhone SDK using the media player frame work? If so what is the code to use. (without actually using the iPhone's default media player controls) P.s. I know what to do for play/stop/pause. ( [self.playingvideo pause]; etc ) But I don't know the code to rewind and ...

UIPasteboard Cut Paste Select buttons not showing up as expected

Experiencing the following behavior in all of our UITextViews. Have not seen any posts on this issue to-date. First entry into the Application works as expected (Can paste, select, cut or copy text). After exiting application and reentry, standard UIPasteboard buttons do not show up. This effects all UITextViews in the app. There is...

OSX: How to store objects in plist file in an OO way

I feel a little dumbfounded. I know how to store any kind of "plist supporting" data in a preferences file, such as NSArray, NSDictionary, NSString and their CF counterparts. No problem there. Now I like to store the values of my custom object this way. I had thought that if I implement some kind of serialization/archiving protocol, I c...

add background image to UITableViewController in Navigation based app

I have a navigation based app where I push TableViewControllers onto the stack. I would like to add a background image to all of my TableViewControllers. Not a color, but an image. I know how I can do this using a Nib file and setting the table view itself to have use [UIColor ClearColor], but I don't want to go through all my TableVi...