Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to remove iPad's Popover arrow and its frame border
  2. - (void) viewWillAppear: (BOOL) animated
  3. {
  4.     [super viewWillAppear: animated];
  5.  
  6.     UIView* v = self.view.superview;
  7.     NSLog( @"%@", NSStringFromClass( [v class]) ); // this should print UIView
  8.  
  9.     v = v.superview;
  10.     NSLog( @"%@", NSStringFromClass( [v class]) ); // this should print UIPopoverView
  11.  
  12.     [[v.layer.sublayers objectAtIndex:0] removeFromSuperlayer];
  13. }