iphone

iPhone UIBarButtonItem with custom view but also having a UIBarButtonItemStyle

Hi there, I am creating a UIBarButtonItem with a custom view in order to achieve a transition to a UIActivityIndicatorView as described here - however I really want my button to retain a normal UIBarButtonItemStyle such as UIBarButtonitemStyleBordered Is there a way to achieve this? Thanks! ...

Is an UIApplication object, UIWindow object, UIView object or any UIView subclass an "Responder object"?

Am I right with my understanding, that an UIApplication object, UIWindow object, UIView object or any UIView subclass is an "Responder object"? Here they say: Responder objects in an application include instances of UIApplication, UIWindow, UIView, and all UIView subclasses. My english is not so well to understand what they ...

Using NSTimer to get accurate timings

I need to run my game loop with very accurate timing. I am trying to use NSTimer to do this, and I am getting ok results, but there is a bit of drift. When NSTimer fires does the next time event start counting when the handler finishes or does it start counting straight away. If the former is it reasonable for me to use setFireDate to t...

Cascade modal views

What I'm trying to do: Display a modal view, where I get some user input Display another one and get more input Do some stuff with the input from 1. and 2. Problem is: presentModalViewController:animated: is non blocking. That means I can't just do the steps 1.-3. sequentially. How I tried to solve it: ViewController0 builds ViewCo...

Does it make sense that there may be more than one class that conforms to the UIApplicationDelegate protocol in an iPhone App?

I think I've understood what that Delegate is supposed to do. If a class conforms to that protocol, it tells the underlying system: "Hey man, I am the UIApplication object's delegate! Tell me what's up, and I may tell you what to do!". What, if multiple classes implement that? Is that possible? Does that make any sense? ...

The iTunesArtwork Image: Is this needed every time, or just in Ad-hoc distribution cases?

I am not surfe if I really need every time this 512 x 512 Pixel Icon, since I don't plan to use Ad-hoc distribution. If I get it right, Ad-hoc distribution is the case when you make an App that is supposed to go only on a very few company iPhones, and you dont want anyone to get that app. If that's true, I choose the other distribution t...

How do I make the iTunesArtwork image without an file extension?

Apple seems to say that this image should have no extension. But how is that possible to have a file without an extension? Does this make sense? Or did I get that wrong? ...

What describes the term "opaque type" best in the context of "CFBundleRef opaque type"?

Does someone have a good explanation of what an "opaque type" is? I saw that term in context of the CFBundleRef, where they were saying: "CFBundleRef opaque type". Is that a type that's readonly? ...

Keyboard Appearance Defaults to UIKeyboardAppearanceDefault on Dismissal

First time Stack Overflow poster. Please bear with me! :) I have a set of UITextFields whose keyboard appearance I set in Interface Builder. I'm using the UIKeyboardAppearanceAlert appearance (the translucent look) for my keyboards. However, whenever I call resignFirstResponder on any of these text fields to dismiss the keyboard, the ke...

Anyone know if it's possible to use custom sounds on the iTouch piezo speaker?

I'm obviously not trying to play full spectrum audio, but is there some way to customize the iPhone/iTouch system alert sounds to play a little melody on the piezo speaker? The functionality is clearly present, so I guess the question is has Apple made it available for developer use... Thanks, -S ...

Is NSTimer expensive?

I am using about 20 UIImageView of small airplane images (50x50 pixels) doing simple animation on the iPhone screen. The animation is done by shifting the UIImageView center property at timer interval. [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(timerFired:) userInfo:nil repeats:YES] What is the best pra...

UITableViewCell Overwritten on Selection?

I've got a custom UITableViewCell implementation (leveraging labels as subviews) that is rendering the list of items correctly, but when I scroll down and select an item (say number 43 of 100), I see a rendering of a cell from earlier in the list (from say, number 3 on the first render page in the table) appear on top of the cell I selec...

Animation effect during changes in a UIView

I want to create transition animation within a UIView (not from one UIView to another). I have one UIView that has two UITextView fields with some text in them that comes from a database record. There are next/back buttons on the screen also. When the user pressed the next button, the next record contents are shows. When this transitio...

Using Celestial framework in your submitted app ?

Hello all, In my app I am using celestial framework in order to control my volume application from the iPhone button volume. Do you think I can be rejected by Apple ? Thansk for your advice. Thierry ...

iPhone and HMAC-SHA-1 encoding

im trying to get a call to amazon web service and im stuck on getting the signature, looked at this but i still have a question on it. using this example what is the NSData *keyData; NSData *clearTextData ? what do i need to pass for these two values? /* inputs: NSData *keyData; NSData *clearTextData */ uint8_t digest[CC_S...

How to programatically launch/dispose of views for the iPhone?

I am not using a tab bar or any other control -- I want to basically change the current view to a different view controller dynamically (i.e. via code). I'm not using Interface Builder at all... For example, let's say we create three view controllers: (this may not be the best example, but I'm trying to make it simplistic) View_Hello...

Programmatically opening the settings app (iPhone)

Is it currently possible to go to Apple's Settings application from a third party iPhone application? It's currently possible to open mail, safari, etc. What about Settings? ...

How to create hotlinks on image?

I'm not sure what the iPhone version of this is called but in HTML it is an image map. Certain areas of the map route you to different pages. I'd like to use an image, mostly in a scrollview, that I can have certain areas perform different actions. For example, Chemical Touch, http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoft...

Cocoa/iPhone app, centering a label in a UIView

What's the best way to center a label in a UIView? If you do something such as UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(view.frame.origin.x / 2, view.frame.origin.y / 2, 50.0, 50.0)]; Then you're setting the origin point of the label to the center of the view. The best bet would be to set the center of the view to ...

Quartz2D and Clipping - Optimize this drawing routine?

Hi, I'm new to Quartz2d so I hope this is an easy question to answer. I have a scrollview whose content frame is 1024x768. Within this I push a custom view (with frame 1024x768) that uses Quartz2d to do some drawing. The idea is, I have a large area that the user can scroll around to see different parts. The problem I'm having is...