uikit

UIPickerView with variable/dependent second column

I am trying to have a UIPickerView where the second column will depend on what's chosen in the first column. For example: Suppose the first column has the fruits Apple, Orange, Pear. If i select Apple in the first column I want the second column to list (Fuji, Granny Smith, Red Delicious). For Orange I want the second column to become ...

Accessory View out of visible range of UITableViewCell

I create custom UITableViewCell and just put the Accessory Type to Disclosure Button cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; But the half Accessory is out of the View on the right border of the screen. Sadly, but I can not post a screenshot because I need 10 posts to do that. I searched everywhere but I d...

How can i make a more rounded UITextField? Like the search field in Safari on iPad...

HI I'm trying to get a UITextField to look like the google search field available in the safari app on iPad. The purpose of the field will be the same (a search box). I know i could use a UISearchBar but I would have to use hackish code to get rid of the magnifying glass icon and the background and I don't want that. I'm attaching an i...

how to rotate UI segmented control

hey all i want to know rotate the UI Segmented control to be in a vertical look cheer BOB ...

Resizing UILabel to fit with Word Wrap

This is part of an iPhone application but should apply to Cocoa written in objC in general. I have a UILabel holding various amounts of text (from single characters to several sentences). The text should always be displayed in the largest possible font that fits all the text within the UILabel. The maximum number of lines is set to 4 an...

iPhone - A text in a text

Hi everyone, I would like to have a text in a text... I mean like in the newspaper: when there is a picture, the text fits and follow the border of the picture. For example: http://en.wikipedia.org/wiki/Iphone look at the pictures... the text follows them! Is it possible to do that on the iPhone? Thanks in advance ...

touchesEnded:withEvent: How to work around the delay before it fires

On iPhone OS, -touchesEnded:withEvent: fires quickly when you left a finger, unless there was a drag. If -touchesMoved:withEvent: has fired, then there is about a 0.6 second delay before you get touchesEnded:withEvent:. I verified this in a new project, no scrollView, no multi-touch. I want the user to drag an object around, and then h...

How to calculate UILabel width based on text length?

I want to display an image next to a UILabel, however UILabel has variable text length, so I don't know where to place the image. How can I accomplish this? ...

Accordion Menu in XCODE

hey, I'm trying to make a accordion menu in Objective-C for a iPad app. The only thing I know is that I should look over core animation. Couldn't find anything helpfull. Can anyone help me ? at least give me a few pointers. ...

static UIAlertView not called willPresentAlertView

In the below code not invoked the willPresentAlertView method. Why? The method is static? or The Alert value is static? @interface ShowAlert : NSObject <UIAlertViewDelegate> static UIAlertView* alert; +(void) showAlert:(NSString*) msg{ alert = [[UIAlertView alloc] initWithTitle:nil message:[NSString stringWithFormat:...

How to hide a UIButton title after onclick event.

When I click a button Its title should be hide. I do't want to set the title to empty string @"". So, How can i do this? ...

Creating a new ViewController and xib for programmatic display (with addSubview)

I am writing a library to be used by developers for the iPhone (similar to the way that OpenFeint is implemented) and I am trying to create a ViewController with an associated XIB so that I can instantiate it in my code with SplashScreenViewController *splashScreenViewController = [[SplashScreenViewController alloc] init]; UIWindow *top...

UINavigationBar autoresizing

In my app, I got a UINavigationController. Unfortunately, when I rotate the device and the interface orientation changes, the UINavigationBar doesn't change its height. In other iPhone applications, such as the Contacts.app, the navigation bar gets slightly less tall in landscape mode. It must be built-in, because if you take the navigat...

UITableView inserting rows

I'm processing data fetched from a server in chunks. Every time a chunk is ready to be displayed (which happens every 0.1 seconds), I update the table view to reflect the changes. To do so, I'm using insertRowsAtIndexPaths:withRowAnimation: to insert each row into my UITableView as soon as the data becomes available. On the Simulator, t...

Can viewDidAppear:animated method be called multiple times for a single presentModalViewController:animated ?

I have a view hierarchy like this: nav1 (UINavigationController, top level object in nib) view1 (UIViewController) nav2 (UINavigationController, top level object in nib) view2 (UIViewController) I called nav2's view[Will/Did][Appear/Disappear] methods in view1's each method. and when I'm calling presentModalViewControlle...

How to add observer on a UISlider

Any idea how can i add my controller class as a observer for my View class' slider? I am trying to achieve this via Observer way: Inside my controller's viewDidLoad method I am calling [self addObserver:myView forKeyPath:@"myView.mySlider.value" options:NSKeyValueObservingOptionNew context:NULL]; and in the same controller file i am...

Iphone TextField.text

Hey, i have this code in my app where i put the text field text in my NSString property. iname = textField.text; after that at some point im doing this to make sure that the string is not empty [iname isEqualToString:@""] the problem is that if the textfield contain one word without space it works great if there is space it ...

Vertical Tab Bars?

I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do. I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help! ...

XCode doesn't recognize UI Class UITextChecker

I am writing an app for my iPad running 3.2.2 with XCode 3.2.3. It seems that the highest version of the iOS for iPad this version of XCode has is 3.2, but other apps load fine onto the phone so this doesn't seem to be an issue. I am attempting to make use of the new UITextChecker class. I have imported UIKit, and UITextChecker.h appe...

Why is my tableHeaderView disappearing

I'm having a strange issue with a table header disappearing after dismissing the keyboard. Here's the how the problem occurs: Select the textfield that is a subview of the table header view. Keyboard shows up as expected. Scroll the table so that the header view is off-screen. Press the return key, which dismisses the keyboard, and tel...