views:

41

answers:

2

How would I replicate the style of the Copy/Paste pop-out so I could put custom buttons inside it. I don't think it's a public class so how else would I do this?

+2  A: 

Just instantiate a view in the desired size, add a UIImageView with the backround image on it and add your buttons

UIView *overlayView = [[UIView alloc] initWithFrame:aRect];
UIImageView *bgView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:thePath]];
[overlayView addSubview:bgView];
[overayView addSubview:aButton];
[aButton release];
[bgView release];

untested

This code could be executed by a UILongPressGestureRecognizer

vikingosegundo
A: 

I was able to figure it out. Check out UIMenuController and UIMenuItem.

If you need more help, watch this Youtube Video for a tutorial.

http://www.youtube.com/watch?v=x1-Ty0FvFK0

Joshua