iphone

How can I animate Three20 TTThumbsViewController images?

Hi, I would like to animate some of the thumbnail images in the Three20 TTThumbsViewController view. The animations will occur randomly, not because of user interaction. TTThumbsViewController subclasses TTTableViewController and uses TTThumbsTableViewCells to layout whatever number of TTThumbViews are needed in that cell. TTThumbViews...

Creating thumbnail from video - choosing the image to be used during preview

Hello, making a thumbnail from video using the picker is straight forward. However, when I press PLAY in the picker and then chose the video, my thumbnail is alway black. I was hoping it makes a screenshot - however this method only takes the first image of the video - and ONLY IF IT HASN'T BEEN PLAYED! How can I make a thumbnail at an...

iphone frame by frame animation memory issues.

I have a frame by frame animation but it is causing my iPad to crash. There are actually a few animations, located in different view controllers, and they work but after a while of switching between them it will crash the app. I think it could be a memory issue that I need to release name, image and array after the animation, but how do ...

What is difference between these 2 macros?

What is the difference between __IPHONE_OS_VERSION_MAX_ALLOWED and __IPHONE_OS_VERSION_MIN_REQUIRED Which should I use to detect old/new SDKs, like #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_3_2 ...

Programmatically perform an action on UILabel touchUpInside?

I have a bunch of UILabels that I add through code and I want to perform a specific action for each if the user's finger touches up inside (much like UIButton's touchUpInside in IB). What is the best way of doing this? ...

Cannot pass UITouch behind scrollview without disabling scrollview user interaction

I subclassed uiscrollview and overrode the touch began method to pass touch events to a button object behind the scroll view(the scroll view is transparent). For some reason, only if user interaction of the scrollview is disabled does the event get passed through. Does anyone know how to pass events up the responder chain with scroll v...

Multiple UILocalNotification Management

I am developing an application that, because I can't use a custom time interval to schedule local notifications, has to create N local notifications to simulate a timed schedule. The application does this once for every X objects (let's call them calendar events for now). So a user can have 100 calendar events, each with 20 local notific...

Best way to procedurally add Power-up items to an iPhone game

To better explain this I'll use Doodle Jump as an example. Assuming that the platforms are recycled, when the character jumps up and the new platforms appear (by scrolling down) there is occasionally a propeller hat on one of them. is there a recommended method to manage this new object? Should I instantiate a single one of these power-u...

question regarding retina display assets on older handsets running 4.x

So I'm building an app for 4.x devices and I'm wondering if I can just use one set of assets at double resolution instead of one set with a @2x id and another set without. Basically im asking can the older 3g and 3gs just use the @2x assets? and do the right thing with them? anyone have experience with this? Thanks ...

Looping through all the UITextFields in a UITableView

Hi all, I have a UITableView that contains a UITextField in each cell. I can't seem to figure out how to loop through and get each of the UITextFields. Is there any way to do this??? Many thanks, Brett ...

UIToolbar above a Keyboard - iPhone SDK

Hi all, I have seen this question posted several times with no useful answers. I am trying to place a toolbar above my UIKeyboard in my iPhone app, but am having difficulty. I found this example which works GREAT, except that my view is a UITableView instead of the standard [self.view addsubview:...]. Can anyone figure out how to appl...

iphone - Search button on a UISearchBar

I have a search functionality using UISearchBar that occurs on-the-fly, so I think it would be more obvious to replace that "Search" button on the keyboard with "Done". Is there a way to do that? thanks ...

Is there anyway to play the "sent mail" sound clip that the mail client uses?

I was wondering if there was a way you could play the "sent mail" sound clip in your app without using MFMailComposeViewController. I have a custom view controller for sending messages in my app. is there a way to play the sound when the user sends the message? ...

Programmatically Displaying a UILabel from another class

I'm re-factoring my code and would like to move a whole bunch of UILabels into another class to tidy things up a bit. I'm missing one puzzle piece to be able to do so though (or maybe I'm just tired lol) Anyway here's the simplified code showing my issue. Thanks in advance to anyone who helps :) @interface MyClass : UIView { UILa...

How does iphone apps interact with server?

Hey guys, I am actually a really new programmer who is new to iphone developing and server stuff. So I have a lot of questions to ask. You don't have to answer all the questions but answering as much questions will help me a lot! thx! How does iphone apps interact with server? Is there a particular kind of server i should use to intera...

Is there any way to customize the toolbar in UIImagePicker?

When the image picker is presented and a user takes a picture, the photo is displayed on another view. The two toolbar items are "retake" and "use." Is there any way to change "use" to "upload"? ...

how to show a default massage on annotaion for iphone

i can set the message when user tap on annotation but how to set 1 message as defualt on 1 annnotaiotn lets say currentlocation annotaion message?? ...

loadView is called when get a message like "Received memory warning level 1"

hi, all: I am developing an App for iphone. Now i create a ViewController subClass which is named WriteViewController, and i create the view of WriteViewController by override loadView() function. The view of WriteViewController is an instance of WriteView. In WriteView, I have a instance of UIImage which holds an image object. I set t...

(iPhone app) error: too many arguments to function 'URLWithString:'

I'm trying to format a URL string however it's saying there are too many arguments. My code is below: -(IBAction)tweetRandom { //NSLog(@"CALLED"); test = 100; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://twitter.com/%i", test]]; // problem line } Anyone know how to format the URL? Was hoping there was ...

NSString *string = @"someString" vs NSString *string = [[NSString alloc] initWithFormat@"%@", string]

If I have a method - (void) myMethod:(NSString *)string { [Object anothermethodWithString:string]; } and I call [Object myMethod:@"this is a string with no alloc statement"] Do I need to do something like - (void) myMethod:(NSString *)string { NSString *string2 = [[NSString alloc] initWithFormat:@"%@", string]; [Object...