iphone

Want to mimic iphone address book search (In terms of interface & interaction)

Hi, When you do a search in the address book the flow is: 1) Select the search bar 2) The right most transparent a-z index is removed 3) A transparent black window is placed over the current UITableView 4) When you begin typing, a new UITableView is loaded with no data 5) The UITableView is populated with data as you type. 6) If ...

ICMP and the iPhone SDK

I'm looking to implement a Ping class in Cocoa-Touch. From the googling I have done and old c code I have looked at, it seems using the ICMP protocol is the best way to go. I guess my question is, is ICMP supported in the iPhone SDK, and if not, is there anything in the CoreFoundation Network classes I could use instead? I have had a lo...

video API iphone

Hi, I want to play H.264 video streamed from network. To play video iphone provides the media player API. Does anyone one aware of any documented or undocumented API for decoding and playing single video frame? ...

How do I add a UIButton or UISwitch in tableView:viewForFooterInSection

Hello. I'm trying to understand how to add a label with a UISwitch or other controller to a footer (or header) in a sectioned tableView. Any help would be greatly appreciated. Thank you in advance! ...

how i get ringing mode of the iphone?

I want to get the current mode of the iPhone that is, the iPhone is on silent mode or in vibrate mode. ...

How to separate view from controller without using interface builder

I want to create UI elements programmatically without using xib files. All of the examples I have found (UICatalog, ...) are creating UI elements directly in the controller methods. What is the best practice to keep up with MVC patternn and separate views from controllers? Thanks ...

iPhone how to suppress phone dialer screen

Hi, I am writing an application which dials a phone number using the "tel" protocol. While dialing the standard iPhone dialer screen pops up. Is there any means by which this screen can be suppressed? Or make this screen device orientation aware? ...

barcode framework for the iphone?

Is there already a barcode framework for the iphone? ...

Detecting finger touch on text

Hi All, I want to read the string displayed on the screen with finger touch, means as my finger moves over the text displayed on screen, the text below the finger should get highlighted. Is there any way to do this using UITextView or any other class. Also i want to play the sound associated with that word from a sound file which has t...

my NSDateFormatter works only in the iPhone simulator

I use a NSDateFormatter which works fine in the simulator, but I get a nil when I run it in the iPhone. I hardcoded the date to be sure of the format, but it fails anyway. NSString *strPubDate = @"Fri, 8 May 2009 08:08:35 GMT"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setFormatterBehavior:NSDateFo...

Call a method in the initiator class from the instantiated class obj-c

I have a button class - when the button is clicked, the playFile method of the MyAudio class is called. So my question is, its trivial to call the playFile method from the button class, but how do I call the method displayStopButton from the initiator class? button class - (void)myButtonClicked: (id)sender { [MyAudio playFile]; } ...

iPhone multiple NSTimer problem

I am writing a multithreaded iphone application in which the socket operations take place at the backend. The front end is the user interface. My problem is that the NSTimer is working only at the front end. That too only one timer works on the frontend. Unable to implement NSTimers at the backend? Are there any threading issues involved...

iPhone UITableView with UISearchBar and refreshing Section Index

I have a UITableView with a UISearchBar at the top of it. I also use the Section Index delegate to display ABC...XYZ on the right hand side. Problem occurs when I click on the Search Box and the keyboard comes up from the bottom, the Section Index squashes so only A*D*...*Z are displayed - when I close the Search and they keyboard goes...

iPhone - how to put Settings bundle seen through System Settings App into your own App?

I want to create a settings page from within my app that looks exactly like the one that I would create in the System Settings Application using a Settings.bundle and Root.plist. Is there an easy way to access the controls like PSMultiValueSpecifier etc. and add them to an actual View? Thanks! ...

iPhone - Detect if device is charging

I can't find anything definate using my favourite tool however I thought I would put it out here.... Is there a way, using the iPhone SDK, for an App to detect if the device is in a state of receiving power (charging, dock etc.) I would like to be able to disable the idleTimer automatically if the device is receiving power (otherwise i...

How can I rotate a UIImageView with respect to any point (other than its center)?

By default, a UIImageView will rotate only about its center. How do I get it to rotate about any other point in the image? ...

How would you implement a dataSource object for an UIScrollView?

Tell me if I am wrong with that: I made an new class ScrollViewDataSource. That class conforms to an protocol I created within my delegate for the scroll view. Well, it's a very special delegate that does some very complex stuff upon scrolling. So this delegate receives that data source object upon initialization. The datasource object ...

UIView is not being displayed

Hi, In my app I have a view controller that has its own navigation controller. But sometimes I need to call it from another navigation controller. When I do so everything is fine but when I want to open a view controller from its own navigation controller again, the view itself is not being displayed. viewWillAppear method of a view con...

What are different padding modes and cipher modes in IPhone for AES encryption?

What are different padding modes and cipher modes in IPhone for AES encryption? Thanks ...

How can I fill an NSArray dynamically?

I have a for-loop. Inside that loop I want to fill up an NSArray with some objects. But I dont see any method that would let me do that. I know in advance how many objects there are. I want to avoid an NSMutableArray, since some people told me that's a very big overhead and performance-brake compared to NSArray. I've got something like...