cocoa-touch

CADisplayLink stops updating when UIScrollView scrolled

Title is quite self explanatory, but I have some animation being done in a loop triggered by CADisplayLink. However, as soon as I scroll a UIScrollView I have added to my view hierarchy, the animation stops immediately, only to return again when scrolling has completely stopped and come to a standstill.... Anyway to cancel this behaviou...

iPhone View Switching basics.

I am just trying to get my head around simple view switching for the iPhone and have created a simple app to try and help me understand it. I have included the code from my root controller used to switch the views. My app has a single toolbar with three buttons on it each linking to one view. Here is my code to do this but I think there...

How do you sketch out your iPhone App designs and ideas?

How do you sketch out your iPhone App designs and ideas? I am currently about to start my next project and want to find a way to get my ideas on screen instead of good old fashioned paper. ...

UIScrollView with pages enabled and device rotation/orientation changes (MADNESS)

I'm having a hard time getting this right. I've got a UIScrollView, with paging enabled. It is managed by a view controller (MainViewController) and each page is managed by a PageViewController, its view added as a subview of the scrollView at the proper offset. Scrolling is left-right, for standard orientation iPhone app. Works well. B...

ViewController init?

I have just noticed that my ViewController does not call init (See below) when it starts up. -(id)init { self = [super init]; if(self) { NSLog(@"_init: %@", [self class]); otherStuff... } return self; } Is there a reason for this, or is it replaced by viewDidLoad -(void)viewDidLoad { otherStuff .. ...

Combining AudioServicesPlayAlertSound with UIInterfaceOrientation rotating buttons

Noob here: Been working on a project which is essentially one of those so-called soundboard apps, tap a button for a sound. While successfully managed to draw the buttons to rotate correctly in all orientations, I've been unable to combine with AudioServicesPlayAlertSound for the sound effects. Been working with InterfaceBuilder and ever...

Is there an easy way to drag and drop a UITableViewCell between two UITableViews?

As the title says. Reordering within a single UITableView is trivial, but the screen of the iPad is large enough to display multiple UITableViews at the same time. So it seems like there should be a way to drag and drop a UITableViewCell between two UITableViews. Any thoughts on the best approach? ...

If my application doesn't use a lot of memory, can I ignore viewDidUnload:?

My iPhone app generally uses under 5MB of living memory and even in the most extreme conditions stays under 8MB. The iPhone 2G has 128MB of RAM and from what I've read an app should only expect to have 20-30MB to use. Given that I never expect to get anywhere near the memory limit, do I need to care about memory warnings and setting ob...

Adding a UINavigationController as a subview of UIView

I'm trying to display a UILabel on top of a UINavigationController. The problem is that when I add the UILabel as a subview of UIWindow it will not automatically rotate since it is not a subview of UIViewController (UIViewController automatically handles updating subviews during rotations). This is the hierarchy I was using: UIWindow ...

Implementing a horizontal compass on the iPhone - algorithm?

A horizontal compass looks something like this if you are facing due East (90 degrees). 85----90---95 If you were facing due 355 degrees northwest, it would look like this: 350----355---0 As you turn the compass, the number should cycle from 0 -> 360 -> 0 So, my question is, how would you implement a view like this on the iPhone? ...

How do I create a view with a picker on the bottom and a table view on the top?

Hi - first time asker, long-time lurker. I am trying to create an iPhone view that has a date/time picker on the bottom half of the screen, and a grouped, single-section, four-row table view on the top half of the screen (almost identical to the one Apple shows in Fig. 2-4 of their View Controller Programming Guide (but then never goes ...

Get height of UITableView without scroll bars

I need to get the full height of a UITableView (i.e. the height at which there would be nothing more to scroll). Is there any way to do this? I've tried [tableView sizeThatFits:CGSizeZero], but that only returns a 0x0 CGSize. ...

NSFetchedResultsController fetch request - updating predicate and UITableView

In my iPhone Core Data app I have it configured in a master-detail view setup. The master view is a UITableView that lists objects of the List entity. The List entity has a to-many relationship with the Task entity (called "tasks"), and the Task entity has an inverse to-one relationship with List called "list". When a List object is se...

NSOperation for animation loop causes strange scrolling behaviour

Hi, I've created an animation loop which I run as an operation in order to keep the rest of my interface responsive. Whilst almost there, there is still one remaining issue. My UIScrollViews don't seem to be reliably picking up when a user touch ends. What this means is, for example, if a user drags down on a scroll view, when they lift...

My UITabBarController's didSelectViewController method is not getting called?

Here is my code stub for my app-delegate.m -- it never gets called. - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController { NSLog(@"%s", __FUNCTION__); } It is defined in this app-delegate.h @interface OrioleAppDelegate : NSObject <UIApplicationDelegate, UITabBa...

Build Warning: Disabling subview autoresizing is not supported on iPhone OS versions prior to 3.0.

This build warning just started showing up. I'm building for 3.1.3. Not sure what I did to trigger it. Anyone know what it means?!? CompileXIB Classes/RootViewController.xib Disabling subview autoresizing is not supported on iPhone OS versions prior to 3.0. ...

adding UIImageView to UIScrollView throws exception cocoa touch for iPad

I am a noob at OBJ-C :) I am trying to add a UIImageView to a UIScrollView to display a large image in my iPhone app. I have followed the tutorial here exactly: http://howtomakeiphoneapps.com/2009/12/how-to-use-uiscrollview-in-your-iphone-app/ The only difference is that in my App the View is in a seperate tab and I am using a dif...

Adding image together with text in a picker view

Can we add image together with text in a picker view? Anyone please help! ...

Getting NSRange from Subclassed UIPasteboard Selection

Hi Everyone: I am wondering if there is some way to subclass UIPasteboard in order to get the selection behavior, but not get the "Cut, Copy, and Paste" options. In addition to this, is there some notification I can subscribe to that returns the NSRange of the selected body of text once it is selected? Thanks for any help! EDIT: I wo...

Problem autosizing second view

Hello, Once a view is called from appdelegate, it is properly loaded but not autosized correctly, on the bottom you see last lines from previous view! On xib file, view mode property is set to scale to fill but I tried others and still happening the same... Thanks for any idea to solve it! ...