tags:

views:

231

answers:

2
+3  A: 

I don’t think this kind of view is a part of the standard API, you’ll have to code it yourself. (Create a new class that inherits from UIView, set the desired background color, create the shadow and outline, draw the triangle at the bottom of the view etc. Maybe also make it possible to attach the view to some other control so that it would get the correct position automatically.) But let’s wait, maybe somebody knows a better solution.

zoul
+1  A: 

To show a popup view on top of an existing view, all you need to do is add it as a sibling of the existing view in the view hierarchy.

[parentView addSubview:existingView]; // you're already adding your first view like this
[parentView addSubview:popupView];    // Subsequent addSubview calls appear on top
cduhn