iphone

iPhone video screen capture for the 3GS

With the advent of the iPhone 3GS' video capability - does anyone know if Apple bundled the ability to capture the device screen as a video? Note: I know this question has already been asked regarding previous handset versions but I am specifically asking about the 3GS where this functionality seems more plausible. Update: until I hear...

Pinch Media - Core Location Optional

Will using PinchMedia and including Core Location frameworks make it unusable on the iPod Touch which doesn't have GPS? If so, is there a way to minimize this dependency since my actual application doesn't care? It would be nice to see, but basically I'm trying to use it to provide feedback from users on things they'd like to see improve...

Core Data vs Sqlite and performance...

I am wondering if anyone has any real world numbers on performance differences between an old sqlite application which has been converted to Core Data in the 3.0 SDK. I suspect that under the hood Core Data is just using sqlite anyways and that it add's a bit of overhead for the cost of convenience, but i thought i would ask anyways. ...

NSInvalidArgumentException/copyWithZone exception with NSMutableDictionary

I have a class that I'm encapsulating ABRecordID with and when it's used as a key to add to an NSMutableDictionary, I get the run-time exception: "NSInvalidArgumentException: *** -[MyRecordId copyWithZone:]: unrecognized selector sent to instance" MyRecordId declared as: @interface MyRecordId : NSObject { ABRecordID abReco...

Can you change the colors of the columns in UIPickerView?

Is it possible to change the color of columns in UIPickerView? For instance, in the standard date picker control, could the day column be green, month be red, and year be purple? Thanks! ...

How to "flick" a UIImageView?

I've got some UIViews that I'd like the user to be able to "flick" across the screen. They're not scroll views. They simply contain a raster image (png). Can anyone point me to some sample code, etc to help get me started? Something a little more heavyweight than "MoveMe" out there that helps detect a "flick" (vs a "nudge" or a drag and...

How to export sio2 file on iPhone?

When i export sio2 file of 3d game on simulator it is loading but then black screen appears. Even i getting "current frame does not matches this frame" this error. Can anybody help me out with his problem. To be more technical while getting material objects its happening so ...

API to get an iPhones unique ID?

Two part question: Does the iPhone have a unique ID other than it's MAC address? If so, is there an API call I can use to get it? (hopefully this isn't a duplicate, I couldn't find anything on SO) ...

IUI way to display invalid password

I'm developing a mobile site using IUI. It's a framework that makes web pages look like IPhone dialogs. I have a tree-like catalog and on a certain level the page asks for a password to proceed. I'm not quite used to IPhone and failed to find a native dialog with a password check that can fail. What is the "IPhonic" way to handle an ...

iPhone SDK: Setting up an animation to create a blinking effect.

In an iPhone application I'm developing I have a Image View that displays eyes and I want to make them blink, an obviously blinking is a random thing, it can't be routine and keep repeating like a UIImageView Animation would do on repeat. How would I set up an animation that displays one frame (blinked eyes) then sets back to the origi...

How to update view with UIButtons

I have buttons in my navigation bar and in a toolbar subview of a container view whose enabled property depends on app state. Currently the buttons are set in viewWillAppear, so the right thing happens if I navigate away from the view then return. I thought [containerView setNeedsDisplay] would do the trick, but no. (I have UITextViews ...

Getting notified when a sound is done playing in OpenAL

I'm using OpenAL on iPhone to play multiple audio samples simultaneously. Can I get OpenAL to notify me when a single sample is done playing? I'd like to avoid hardcoding the sample length and setting a timer. ...

iPhone - How to build a list of unique items

I want an array which contains only unique items. I know I could do this with an NSDictionary adding items with keys and then get allKeys. This would ensure that the NSArray contains only unique items, but I feel that this would be overkill and believe that there should be an easier way to do this, but cannot find one. ...

Control flow in Objective-C

I am working through Beginning iPhone Development. In the book is this method: -(void)playWinSound { NSString *path = [[NSBundle mainBundle] pathForResource:@"win" ofType:@"wav"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID); AudioServicesPlaySystemSound (soun...

NSException thrown loading a XIB file with a UITextView

I have a XIB file with a UITextView, which I'm associating with a UITextView* outlet in my controller: @interface MyController : UIViewController <UITextViewDelegate> { IBOutlet UITextView *textView; } @property (nonatomic, retain) IBOutlet UITextView *textView; I've aded the prototype in desperation, I've not implemented any o...

Getting a view to respond to a sibling's touch event / message

I'm sure there is a correct way to do this, I'm new to objective-c and cocoa touch so I don't know what it is. I have an application that has a (simplified) view hierarchy of Window --Button --Button --Subview --Sub-Subview What I'm trying to do is get the subview to do something in response to a touch event on one of the b...

iPhone Dev: Playing back a flash animation

Hi, I am building a simple application that has a few buttons that when clicked play a video. Right now I have those videos as flash files. For my first attempt I tried converting them to .mov and used the MediaPlayer framework. The video/are very poor and when you double click the video controls pop up. Im not sure what the best way ...

Keep App directory the same when building for iPhone Simulator?

Hi there; I'm building an iPhone app, and my app copies a bunch of resources to the App's Documents directory on first install. While I'm developing the app, I simply modify files in the App's Documents directory for the iPhone Simulator to make it easy to test out things without having to rebuild the app. But when I do rebuild the ap...

Is it possible to put a hidden search bar above a grouped table view?

In OS3.0 a lot of plain table views have an initially hidden search bar that can be accessed by scrolling down to reveal it (e.g. mail, ipod). Is it possible to do the same thing for a grouped table view? Background: I'm using a grouped table view as a static navigation menu (similar to the Things app). The content never changes, it...

How do I use a UISegmentedControl to switch views?

I'm trying to figure out how to use the different states of a UISegmentedControl to switch views, similar to how Apple does it in the App Store when switiching between 'Top Paid' and 'Top Free'. ...