iphone

Navigation View in Modal View

Hi, I am new to modal views and cant seem to get a navigation view display in a modal view. How do I build a navigation view in the modal view? ...

iOS4 UISearchBar localization of cancel button

I have tested my app on 3.1.3 and when the device language is set to German it displays the UISearchBar cancel button localized into German. On iOS4 it displays as "Cancel". Is there anything specific I need to do in iOS4 to trigger the cancel button to display as a localized string? ...

Does NSUndoManager work on iPhone without shake gestures?

I have an app that uses the shake gesture for something else besides undo. I want to use NSUndoManager and all the examples and how-tos say I have to put the following line in my applicationDidFinishLaunching method. application.applicationSupportsShakeToEdit = YES; Is it possible to use NSUndoManager without supporting the shake to u...

Slide over UITableViewCell, present another cell. Framework?

Hey! I am trying to find either a framework or make one myself that can do this: When you slide/swipe across a UITableViewCell, another cell gets displayed (with options such as Share on Twitter, Facebook, email etc). The Twitter-app has got this, and I was wondering if there was an open framework for it. If not, where do you recommen...

how to get index of a item in a array

i am having array called stored and i want to access thier indexes so that i can select them individually to do my operations... if i want to print thier indexes what should i do?.... ...

objective-c programmatically change table view from standard to grouped?

Hello all, The following situation pertains to an iPad app I am working on for my company. So I have an array of type "Person" that holds the information of a list of people. On the initial page, I have a table that displays their name and picture. When this loads, the results are ungrouped. I was wondering if there was a way to eas...

iOS 4 VOIP app responding in the background

Hi there, I have an iPhone VOIP app that copes with multi-multi transmit and receive (ie teleconferencing) set up using BSD sockets. I would like it to be able to respond to incoming requests when it is in the background but from what I can understand of the iOS 4 docs I can only do this on an NSStream object (or CFRead/WriteStream) by...

Best time to invalidate NSTimer inside UIViewController to avoid retain cycle

Does any one know when is the best time to stop an NSTimer that is held reference inside of a UIViewController to avoid retain cycle between the timer and the controller? Here is the question in more details: I have an NSTimer inside of a UIViewController. During ViewDidLoad of the view controller, I start the timer: statusTimer = [NS...

How to programmatically produce a video on the iPad platform?

Hi, I would like to programmatically produce a video using the microphone on the iPad (for sound) and the screen display (for visual)? Is this possible? How should I proceed? ...

iPhone 4.0 OS, blocks

In my iOS adventures, I got really into blocks, because they were necessary for the UIViewAnimation to "Animate With Blocks" which is the recommended way to do UIView animations. Of course, this results in code that is not backwards compatible. I realize this question has a subjective component, but at what point would using the iOS 4.0 ...

How can I genereate a .mov file with pictures I have by using iphone sdk?

I want to make an mov file with pictures, 1) is it possible? 2)how? , and then upload it to somewhere via wifi, any suggestion would be appreciate. thanks. ...

Key Value Observing with an NSArray

I've looked on SO for examples of using Key Value Observing with an NSArray (or NSMutableArray) and apparently you need to use an NSArrayController (which unlike KVO I'm not familiar with), but I haven't found concrete examples of how to do this... can anyone explain with some sample code? For instance, if I have a GameModel which repre...

In the iphone 4 sdk, how can I get TransitionCurlUp to trigger random text?

Hello friends I am trying to put together an app that has a set of text that can be randomized when the user presses the button to flip the page. Basically, pressing the button does two things; flip the page and changes the text to a randomly included phrase. I am trying to implement this by having the page curl into the same XIB file ...

Handling Text Input with an iPhone's Virtual Keyboard

Hey Everyone, Does anyone know of a way to utilize the iPhone's hardware keyboard with something other than a UITextView/Field, basically I want to be able to send characters pressed on the virtual keyboard to my own view. If anyone can help me out that'd be immensely appreciated!! ...

How can I display a custom key popup on a keyboard accessory view?

I want to present an option to select from several keys after a long press, the way that a regular keyboard does for accent characters. I want to make it look and act like the keyboard, instead of implementing it with the big black-bordered popover. ...

Does iphone OS 4 support Web socket?

I am working on an investigation see how web sockets is supported in browser. Firefox nightly build : Yes. IE 9 Preview: No. Can someone help me check if it's supported on Iphone OS4? Please check it on following page: http://jimbergman.net/websocket-web-browser-test/ Thanks in advance. ...

EXC_BAD_ACCESS with iPhone SDK UINavigationController

Okay so I am trying to use a simple UINavigationController with iPhone SDK in Xcode and it works all well when pushing but if go past 2 pushes and try to pop the view controllers I keep getting the error: EXC_BAD_ACCESS I know what it means but how the heck do I fix it? Here is my code... (Assume the MainViewController has a button tha...

Preventing multiple buttons from being touched at the same time

In iOS is there anyway to prevent a UIView containing multiple buttons (siblings) from being simultaneously from being touched? For instance, two non-overlapping buttons that are side by side can be tapped at the same time with two touches. ...

Apple Game Center api

I'm having trouble finding the GameKit api that contains the Game Center Reference. Apple Game Center is a social networking platform new to iOS. It's described here: [What's New in iOS4][1] The GameKit iOS reference is here: http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introductio...

How implement UIPickerView selectrow after components are loaded?

I have an iphone application in which there is a container class which manages several view controller classes. One of them includes a UIPickerView. I can not call selectrow in viewdidload because the pickerview components have not loaded before selectrow is called. I can not call selectrow from viewdidappear or viewwillappear becaus...