iphone

Is there any popup editor function in iphone?

I'd like to popup a simple dialog with an editor box, to let user enter some value then just return. I am wondering whether iPhone SDK has that kind of support. Thanks. ...

Programmatically access/add/change ringtones of contacts.

Using the iPhone SDK is there a way to programmatically access (read/write) the ring tone that is assigned to a contact in the Address Book? ...

NSURLConnection chunked encoding upload - How?

I need to create a way to upload a bytestream using chunked encoding. I have a byte array that contains an audio file, I would like to send that file to a server using a chunked stream. I've been able to do a chunked upload via a native socket but I would really like to do this via one of the NSURL (NSURLConnection?) libs. Is that poss...

Hidden UINavigationController inside UITabBarController

I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController that displays 5 tabs at the bottom of the screen. I want to display another UIViewController (inside a UINavigationController) when a dialog button is pressed. This view should only be loaded and unl...

Best JSON library to use when developing an iPhone application?

There are a few JSON libraries/frameworks available for objective-c developers, but I wanted to get the opinion of the resident gurus here on which one is the best, and why. Any thoughts? ...

How to get a Phone Number from an Address Book Contact (iphone sdk)

I am showing an addressbook view to the user and letting them click on a contact and select a phone number. If they select a phone number, I want to get the phone number as an integer and the contact's name as an NSString. I've tried doing it with the following code: //printf("%s\n",[[(NSArray *)ABMultiValueCopyArrayOfAllValues(t...

How do I remove the borders of a UITableView?

I have subclassed the UITableView control, and the style is grouped, but I do not need the cell separators. I tried setting my table view's separatorStyle to none, but it doesn't work. Can any one help me out? ...

how to click on a button in the iphone application and link to a website

i am developing a iphone application in a view-based project,(not navigation) however i would like to click on a button in that application and able to link to a website,anyone can give me some hint how to make the view being transistion ...

How can I create a zip file by using Objective C?

I am developing a iPhone application, and trying to zip the file I have created in the application, is there any built in function able to do this? ...

How to programatically sense the iPhone mute switch?

I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When my app plays background music, it responds properly to the volume button without me having any code to follow that but, when I use the mute switch, it just keeps playing away. How do I test the position of mute? (NOTE: My program ha...

Deserializing a complex JSON result (array of dictionaries) with TouchJSON

I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it: NSString *jsonString = [[NSString alloc] initWithContentsOfFile:@"data.json"]; NSData *jsonData = [jsonString dataUsingEncoding:NSUTF32BigEndianStringE...

IRC channel for iPhone developers?

I was wondering if there is a good IRC channel around somewhere that allows iPhone developers to get together and talk about code and etc. Any channel already around that people are using? ...

PDFKit framework available on the iPhone OS?

I'm curious to know whether the PDFKit framework is available for use within the iPhone OS, in order to build a PDF reader a bit more sophisticated than the one available by simply opening PDF documents with UIWebView. Just wondering if this is an option or not. ...

error when AppKit framework added in iphone application

i want to import in my iphone application, but i know this framework is not available in iphone sdk,but i need to use NSfileWrapper class in this framework, is this class also available in UIKit or others framework available in iphone sdk, thanks ...

How to dump data stored in objective-c object (NSArray or NSDictionary)

Forgive me for a potentially silly question here, but in other programming languages (scripting ones like PHP or Perl) it is often easy to dump everything contained within a variable. For instance, in PHP there are the var_dump() or print_r() functions. Perl has the Data Dumper CPAN class, etc etc. Is there something like this for Obje...

error when import zlib in iphone sdk

I have included in my iphone application and the source code I was mocking up the sample code of Molecules provided by Brad Larson, however, when I build the project, it returns the error as below. Can anyone point out for me whether this is a library linking problem or am I missing something else? "_deflate", referenced from: -[NSDat...

Problem dealloc'ing memory used by UIImageViews with fairly large image in an UIScrollView

I have a large UIScrollView into which I'm placing 3-4 rather large (320x1500 pixels or so) UIImageView image tiles. I'm adding these UIImageViews to the scroll view inside of my NIB files. I have one outlet on my controller, and that is to the UIScrollView. I'm using a property (nonatomic, retain) for this, and sythesizing it. My qu...

UINavigationController title can be some Image?

Is it possible to set some image as title of Navigation bar? I think NYTimes application used a Navigation bar and title is look like image file.(the reason why it's seems NavigationBar is becuase they use right button to search) Cheers. ...

Memory Usage on convenience method vs init method

Recently when I looked into iPhone memory management, I tried to compare the convenience method and init method on the same object. For example, I have UIImageView where it displays a downloaded NSData: Convenience method: imageView.image = [UIImage imageWithData:[downloads dataAtIndex:0]]; init method: UIImage *aImage = [[UIImage a...

Toolbar moves up when call finishes

While in a call, if the user wants to use my application, and if the call finishes, and the user is still in the application, the toolbar moves up, well all the view moves up, and so the toolbar now has a space in the bottom. Basically the height "Touch to return to call" has. I am using a toolbar and a navigation controller. The navigat...