iphone

Do I have the right understanding of frames and bounds in UIKit?

Let me try to explain it. Please tell me if I am wrong. I am just 70% sure about it. Like I understand it, an UIView has a frame and an bounds rectangle. The job of the frame rectangle is to set the position of the UIView relative to it's superview. More precisely: Relative to the coordinate system of the superview. The job of the bound...

How to display background image or foreground image of an iphone app

This might come across as a very silly question. I am trying to place an image behind my first "Hello World" app on iphone, since this morning. I tried doing so using Interface Builder using UIImageView object from library and also tried doing so programmatically. Googling hasn't be much of an help either. Can any one please demonstrate...

Multiple PickerViews in one View?

Hi PPL. I want to create 2 separate pickers in the same view using the same viewController. But how do I set separate delegates and datasource for them? Can't seem to get it working. They show up with the same data. If you have any sample code on this it will be much appreciated. Thanks. ...

View Transformations: Is there an better explanation of the one from Apple?

Apple says: Translating a view shifts all subviews along with the drawing of the view's content. Because coordinate systems of subviews inherit and build on these alterations, scaling also affects the drawing of the subviews. Like I understand, when I do a transformation on a view, this will effect all subviews as well. B...

iPhone, slide down help screen

I like the effect used in many iPhone apps where a semi-transparent help screen slides from the top (or bottom) on top of the current view to show hints or tips. This screen often has a close button as well as "don't show this again" button. What's the best approach to slide a view on top of the current view for such an effect? Any code...

Why does UIWebView keep detecting phone numbers?

I have a UIWebView with detect phone numbers unchecked. However, it keeps underlining the numbers in this text: Version: 2.1 3.19.2009 The text isn't in an anchor or anything. Is there a way to force the UIWebView to not detect phone numbers? ...

Throwing webview request to another webview

I have a UIViewController with a UIWebView (webview1) in it. The webview is only a few lines of text but does have a link in it. Rather than open the link, which goes to an external website, in this tiny space, I'd like to send it on to webview2, which will be a full screen. The goal is to keep the web requests within my app rather th...

How do I get the UIToolbar font to match UINavigation Controller?

Using the following post, I was able to add a UILabel to a UIToolbar, however, it looks crappy. Anyone know how to get the text size / color / shadow to match the title for a UINavigationController? Navigation Controller UIToolbar with UILabel What steps do I need to take to make them match? ...

UIToolBar - disable buttons

Hi, in my app I have a toolbar and at a certain point I want to disable or enable some buttons. What is the easiest way to do so? How can I access items property of UIToolbar? Here is my code: -(void)addToolbar { NSMutableArray *buttons = [[NSMutableArray alloc] init]; //Define space UIBarButtonItem *flexibleSpaceItem; ...

How to use a python api on iPhone?

There is an "Unofficial Plurk API in Python". Plurk is a twitter-like website. Can I use the API(python) from Objective-C? Or i have to port them? ...

UITableView - how to recognize a deselection?

Hi, In my app I want to have certain buttons that are inactive when there is no row selected in my table view. There is a method didSelectRowAtIndexPath, that tells me when a row was selected. Is there a way to know if a row was deselected? Thank you in advance. ...

Is there a good charting library for iPhone?

I have a need to render and display charts (bar charts for now, but more types may be needed later) in an iPhone app I'm working on. I've done some looking around and it doesn't look like there are any really good, mature charting libraries for iPhone yet. I've also looked for something written for Cocoa on the Mac that can be adapted, b...

iPhone touch methods not working with release build

Hey all, I'm having a strange issue where a custom control I've built for the iPhone works perfectly when building in debug mode but only works partially when built in release mode. The main wrapper view is a subclass of UIView and it contains a row of "buttons" that are added as subviews. The custom button class extends UIImageView an...

iPhone SDK mem management issues - EXC_BAD_ACCESS

I've been staring at this same issue for a long time now, and would really appreciate any help or suggestions. I'm sure its something simple, but I can't seem to find it. In my app delegate I'm loading up a bunch of accessory objects (an object I created, which supports NSCopying) with the following code: NSString *path = [[NSBundl...

Why is my toolbar not visible when in landscape mode?

My aim was to get the application functioning in both landscape and portrait mode, and all I could figure out to do it was this code below. The app was working fine in portrait, but when switched to landscape, the text wouldn't expand (to the right) to fill up the additional space. I made sure my springs/struts where set, and that the pa...

Manipulating image tiles on iPhone

Hello friends can you please help me in creating image tiles on iPhone How to store the and how to manipulate them while handling touch... ...

Simple assignment not working with UIImage* / imageNamed

UIImage* test = [UIImage imageNamed:@"test.png"]; self.image_in_controller = test; Later in the code when image_in_controller is used, I get EXC_BAD_ACCESS. I set a break point around the time of the assignment. The variable test is getting set just fine.. after the assignment to selfimage_in_controller, test is still okay, but image_...

ABPeoplePickerNavigationController

This is probably a really basic question, but when I make my ABPeoplePickerNavigationController instance (addBookViewer)visible by running, [self presentModalViewController:addBookViewer animated:YES] the contact view pops up, but is cut off by the top most bar of the display (the bar showing the AT&T signal strength, clock and battery...

Where are an UIWebView's cookies stored?

I'm building an iPhone app with cookies. Deleting cookies in the Safari settings doesn't delete them. Where are they stored? Is it possible to read them from another UIWebView? Thanks! ...

Cannot run code on device

Hi I have some source code which I had developed and later gave to another team. They signed it with their certificate and provisioning profile. Now I have the code back and have set the appropriate values in the project properties for code signing identity (with my cert and profile). But when I run the application on a device, I get a...