开发者

container for image on iphone

i want to pop up a circular ring whenever user press base button and that ciruclar ring should have 6 buttons on corner and each button should have its own 开发者_如何学编程function upon click.

but i dont know how to put those 6 buttons.

so on screen there will be 4 base button and user can click any of the 4 to pop that circular ring (with 6 buttons)


Keep the buttons separate from the ring.

The ring is just a graphical element (UIImageView) on which the six UIButton instances sit atop.

Make the ring and its buttons subviews of a parent view. Use the frame property to set their position and size.

Your first "top-most" button could have a selector that then unhides the ring and the six buttons:

- (void) unhideButtonRing:(id)sender {
    ringElement.hidden = NO;
    buttonOne.hidden = NO;
    ...
    buttonSix.hidden = NO;
}

You could use an NSTimer to hide the button-ring after some time period.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜