uikit

How do I detect orientation on app launch for splash screen animation on iPad!!

Hi I have an app and I have two *.pngs for default splash screen: Default-Landscape.png Default-Portrait.png What I want is to animate this default splash screen away when my app is loaded and ready to go. To achieve this I would normally present an UIImageView with either default-landscape or default-portrait (depending on the devic...

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. ...

Can't use UISplitViewController in a universal app?

I'm having trouble getting UISplitViewController working in a Universal app where I've already coded the iPhone portion. As a troubleshooting method, I decided to start with a new project and just try to do the one action that's causing a problem and it still is. If I create a Universal app and in the iPad controller create a split vie...

UINavigationBar height and landscape mode

If I use a UINavigationController to display my UINavigationBar, this bar is much slimmer in landscape mode than in portrait mode. Everything fine so far, as I want this behavior, but I have one view which isn't handled by an UINavigationController and so I just dragged and dropped a UINavigationBar from Interface Builder into the view...

Replacing UITabBarController in UIApplicationDelegate

Heya I'm having a problem with navigation logic in my iPhone app and was wondering if you could help? When the app first starts it loads a UITabBarController with 2 options : Load, and Create. Whichever of the two options is chosen loads a view into that tab with the appropriate information. From here however, when the users either sel...

UITableView replicating first NSArray Item for all rows...

Hi all, Got a weird problem with my NSMutableArray and UITableView. It's got 4 items in the array, the table shows 4 rows but each rows only contains the first array item, rather than row 1 showing array item 1, row 2 showing item 2, etc... Here's my code: My Mutable Array //in .h NSMutableArray *tableRows; //in .m tableRows = [...

Editing multiple sections of a UITableView at once causes crash.

I have a UITableView with 2 sections. The section 0 contains a list of file names and the user can tap them to toggle the checkmark accessory. This section is also editable so the user can swipe to delete a file/row. The section 1 is not editable and contains 1 row and acts as a button to initiate a transfer of the files. Thus, the da...

Drawing a line in a UIView subview

I have a UIView subclass. This subclass has multiple subviews. Is it possible to draw a line using core graphics inside a subview that is part of the uiview subclass? For example, I have a SampleView class, which is a subclass of UIView. Inside this class's header file is the property for UIView *sampleSubView, which is a subview of Sam...

UITabBar ignoring occasional "clicks"

I'm working on an iPhone app that has a UITabBar. Occasionally the tab bar ignores my "clicks" (or "taps", or whatever they're called in the iPhone world). It happens on both the simulator and the on the device. Clicking on a tab bar button won't result in any action, and I have to click it several times for the expected action to occur....

How to see the tab bar controller in Interface Builder

I created a Tab Bar Application in XCode. Then I clicked on MainWindow.xib. In the document window there is a Tab Bar Controller. When you double-click on the window icon, the window is shown. Shouldn't something similar occur if you double-click on the Tab Bar Controller icon? ...

Big activity indicator on iPhone

Does anyone know how to show a rounded squared with a spinning activity indicator? It is used in many apps. If you don't know what im talking about, it looks like the indicator when you change volume on your Mac but with a darker background. Im not sure if it is built-in to iOS or someone made it. Like the one in this post but not full ...

iPhone - How to best handle when a user leaves Entry Screen blank and presses Save

In our iPhone app we have a controller 'AddViewController' which shows a data entry screen to add a new entry. It includes Save and Cancel buttons. Currently if a user enters nothing at all in any of the text fields and presses Save the app crashes. (Yes I know it's silly for someone to do this, but hey just covering off on everything) ...

How can I save UIPickerView rows selection

Hi, I have an UIPickerView with 2 components. I would like to save the user's selection for the components. How can I do that? I have tried with NSUserDefaults but it didn't help. Thanks! ...

Do I need to remove subviews that aren't visible in UIScrollView to keep it running smoothly?

I'm working on making a special UIScrollView to show a timeline of events, (Like a gantt chart if you're familiar with such things) and there could potentially be dozens of these events, some visible and some not at different times. What I'm wondering is this: should I make an implementation similar to UITableView to remove the items th...

Does UIGestureRecognizer Work with UIWebView

I am trying to get a UITapGesture Recognizer to work with a UIWebView. I want to be able to detect when a button is pushed on my web view. If i set the userInteractionEnabled property of the webview to NO it works, it also works if numberOfTouchesRequired is set to 2. How do i detect touches and the position of the touch in a UIWebView?...

Push UIViewController onto another

Hi there. I can't seem to push a UITableViewController onto a UIViewController using the following code: [self.navigationController pushViewController:cardsViewController animated:YES]; The following code works for modally presenting the same view: [self presentModalViewController:cardsViewController animated:YES]; Does anyone kno...

Can I add an iPad popover programatically?

Is it possible to add a popover programatically without using a NIB file? All the examples I have run into use NIB files. Any information/help/examples would be appreciated. Thanks! ...

Lazy Loading UIImages from files without blocking main thread?

What's a decent way to load UIImages on demand without blocking the main thread? Context: I have a couple thousand images on a wall that I can scroll through. Obviously it's not feasible to just load all the UIImages, so right now I'm just lazy loading the ones that are getting displayed, and then releasing them when they're no longer n...

UIVIew animation - Scaling + Translating

Hi, I have a view which I want to be scaled and translated to a new location by animating it. I tried to achieve it with the following code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:kDurationForFullScreenAnimation]; [[self animatingView] setFrame:finalRect]; [UIView commitAnimations]; The effect of this ...

drop down lists in xcode

Ive got a button in a UICell. I want a list(a table view like view to be precise) to dropdown when the user touches the button and dissappear when he touches it again.Googling didnt get me any solutions:-( Any suggestions on sites to refer would also be appreciated.. ...