cocoa-touch

Displaying text on a UILabel in digital form?

Hi All, How can we display text in digital format(seven segment display) on a UILabel similar to the way as text is displayed in Digital Clock. ...

Opening a curtain: Animation with Core Animation

Hey, I would like to animate a curtain, which gets opened. I have two images: one for the left and one for the right side of the curtain (depicted in red). I would like to smoothly slide them away with Core Animation. For what animation type should I look for? How do I achieve a realistic sliding style? Regards, Stefan ...

MPMoviePlayerController shows blank white screen before launch?

I have an MPMoviePlayerController that I am presenting modally. The video loads fine, however just before the video is launched the screen turns white until it has loaded. How can I prevent this from happening? moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]];...

How to create multi-column text layout for iPad?

Hello, I'm looking for a way to create kind-of an article reader which would have 2-3 columns of text which could occasionally wrap about some image. Just like it's done in "New York Times" or "Wall Street Journal" and other iPad applications. Also, that text should be paged and every page should have UITableView at it's side (just li...

iPhone application - perform post-install tasks or pre-populate core data

Is there a way to perform operations during the install phase of an iPhone application? I think this would be the most ideal time to perform tasks such as populating data stores (using core data). Or is there a more convenient way to: pre-populate data perform post-install tasks ...

Pass data between ViewControllers in a UINavigationController

(Continued from this thread) Suppose that I have the following view created: The 'View' button is supposed to push a new ViewController which will show all photos by either Josh or Al, depending on which button is pressed. My question is: In the ViewController code, how do I determine which 'View' button is pushed (top or bottom)? ...

Bubble Chat + Emoticon + UITableViewCell

Hi There, This is a question for iPhone development and I'm hopin someone can point me to the right direction on how i should go about implementing this. I am trying to write a chat application that supports emoticons/smileys. Where the smiley/emoticon images are stored can be figured out later. I think few iphone applications out the...

what is the maximum heap size and stack size supported by iphone os?

Hi Could anyone tell me what is the maximum application size supported by iphone? Also what is the maximum heap size and stack size supported? Application goes 'out of memory' very soon... ...

NSTimer and updating UI

Hi all, Ive been trying to get my game to work correctly with an NSTimer. Ive seen many people have had a similar problem to me and I just need a bit of clarification on something. Basically I have an NSTimer running on the main thread which is updating images which represent the time, but I also have a mapView. When the user pans the ...

How to slide in/out statusBar and navigationBar simultaneously?

I'd like to show and hide the statusBar and the navigationBar simultaneously using a slide effect. This is how I tried: [[UIApplication sharedApplication] setStatusBarHidden:hide withAnimation:UIStatusBarAnimationSlide]; [self.navigationController setNavigationBarHidden:hide animated:animated]; However, the duration of both animation...

iPhone SDK 4 "Half curl page transition"

In Steve Jobs' keynote announcement of the iPhone SDK 4 earlier this year, one of the slides showed that a "Half curl page transition" was part of the new SDK: I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is? ...

Anything faster than a UIButton?

Hi, I'm writing an iPhone app which needs an extremely rapid response for a touch event. Is there any object that will provide a faster response than the UIControlEventTouchDown result of a UIButton loaded from a nib? I'm open to any resources that don't require extensive digging around or reverse engineering. Thanks in advance! Luke ...

UITableView: Recovering from NSInternalInconsistencyException after bad updates?

So I'm updating a tableview by inserting/deleting/reloading rows as needed, but, as I'm not 100% confident that the tableview will always update correctly, is there any way to fail safely from a bad batch of updates? Right now, I have this: // Try to animate the updates. If something goes wrong, just reloadData. @try { ...

Instruments reporting false memory leaks?

I ran Instruments on my iPad app to check for leaks. It found several "leaks" where an object was being retained in a method: But these objects are released later in dealloc: Are these classified as false-positives? ...

How do I transpose a view's frame to it's superview?

Not even sure how to ask this. Transpose local coordinates to global? ...

Delegation and Selectors

My app currently has what I'm pretty sure is a bad design, but I'm not sure how I can organize it any better. For example: LoginViewController sends the input text for the username and password to an instance of UserController. UserController sends a request to my server to validate the username and password, via NetworkRequestControl...

Objective-C: Address sent by the caller different than what is received by the callee?

For some reason, I'm having this issue randomly pop up where a method that's being called receives a bad address and causes the app to crash. Sure, that's not uncommon, but when I check the frame above the crashing method, the address of the object that I'm passing in is completely different than the address of the argument in the called...

Default iPhone template.

The default iPhone view template has code as follows { // Override point for customization after app launch [window addSubview:viewController.view]; [window makeKeyAndVisible]; return YES; } isnt there a memory leak here? shouldnt it be { // Override point for customization after app launch [wi...

Passing integers when floats are called for

If the arguments of a method call for floats to be passed, can one simply pass 10 as opposed to 10.0? I have been doing this, but often see code which specify .0 and have been wondering if there are any reasons to do so. Thank you. ...

why does my UITableView not appear to start in editing = YES mode when initialized?

I have a UITableViewController subclass. I set self.editing = YES at the end of the viewDidLoad method, but when the table is displayed the little red 'delete' icon does not appear next to each row. Then, I added an edit button to the navigation item: self.navigationItem.rightBarButtonItem = self.editButtonItem; When I launch the ...