Hi Dave, Might this have something to do with it? "UIViewAnimationOptionAllowUserInteraction - Allow the user to interact with views while they are being animated." http://developer.apple.com/iphone/library/documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/c/tdef/UIViewAnimationOptions
If I remember correctly, this is set to 'No' by default in 4.0. I also remember reading a note somewhere that that default was being considered for reversion, perhaps due to confusion such as your own : ). Very best Luke On Mon, Sep 6, 2010 at 9:32 PM, Dave DeLong <davedel...@me.com> wrote: > Hi everyone, > > I'm working on an iPhone app, and I'm trying to make the title in the > navigation bar scroll. I've got a UIView subclass that I wrote that, given a > string, will lay out some UILabels and then animate a frame change to give > the appearance of scrolling. This works just fine. I instantiate one of > these scrolling label objects and set it as the titleView property of my > viewController's navigationItem. This also works fine, and the title scrolls > as expected. > > The problem is that the entire UI is totally unresponsive. Nothing registers > user interaction. My timers still fire, the UI can get updated > programmatically, but gestures, taps, swipes, etc are all totally ignored. > Even the UIBarButtonItems in the navigationItem are unresponsive. > > If I take out my scrolling text view, everything works fine (except I > obviously don't have a scrolling title). As soon as I put it back in, the UI > goes dead. > > I'm doing the animations with the 4.0 UIView block-based animation API. I > tried using an NSTimer to "animate" frame changing, but parts of my app > require dragging for user interaction. The dragging would prevent the timer > from firing at consistent intervals, resulting in the scrolling slowing down > dramatically. As far as I'm aware, the only reasonable way to animate a user > interface element without interfering with the main thread's run loop is with > CoreAnimation and layers (correct?). > > So: > > Why would my scrolling text view be killing my UI? What can I do to get > around this? > > (For reference, the implementation of my ScrollingTextView is here: > http://pastie.org/1142995 , along with a relevant UIView category) > > Thanks, > > Dave > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/lukexipd%40gmail.com > > This email sent to lukex...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com