iPhone App doesn't pick up Touch events, after replacing one view with another

Posted by Andre on Stack Overflow See other posts from Stack Overflow or by Andre
Published on 2010-03-19T17:35:23Z Indexed on 2010/03/19 17:51 UTC
Read the original article Hit count: 281

Filed under:
|
|
|
|

Hi,

Any idea why after replacing one UIView with another (with the same Touch event logic), the 2nd one won't pick up any touch events?

I'm replacing them using:

[currentView removeFromSuperview]; NewView *newView = [[NewView alloc] init]; [window addSubview:newView];

Thank you all for your help :)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode