Search code examples
objective-csubviewibaction

objective C code for close a view


What's the code in an IBAction for a button to close a subview?


Solution

  • UIView *abc;
    [self.view addSubview:self.view];
    [abc removeFromSuperview];