UIView remove itself from UIScrollView

Posted by alex25 on Stack Overflow See other posts from Stack Overflow or by alex25
Published on 2010-06-17T13:06:30Z Indexed on 2010/06/17 13:13 UTC
Read the original article Hit count: 264

Hi!

Following Scenario:

I have a = UIViewController A that contains a UIScrollView

I have a second UIViewController "B" (amongst other things it contains a button) and add it to the ScrollView of A

myView *mView = [[myView alloc] init]; [myScrollView addSubview:mView.view];

Is there a way that once the button is pressed that it(view) removes itself from the scrollview?

I thought in the direction of setting the delegate of mView to "A" ?! But not sure how that should work in detail....

Any suggestions? Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c