Overlay View on UITableView

So, I'm trying to create a search that returns a bunch of results in a UITableView. When the user selects one of the cells, I want to impose a detailed view of this result in a beautiful, compressed window. This view should have text, buttons, and a photo. I was looking to crack vigilance, but I read that, as a rule, I frowned. I also looked at the HeadsUpUI example in the iphone SDK, but that didn’t do exactly what I wanted. Does anyone have examples of how to overlay a custom view over a tableView? Any help would be greatly appreciated ...

I also tried doing something like this without any luck:

CGRect newSize = CGRectMake(0.0f ,0.0f, 320.f, 400.0f); UIView *newView = [[UIView alloc] initWithFrame:newSize]; [tableView addSubview:newView]; [tableView bringSubviewToFront:newView]; [newView release]; 

Also, if there is any way to blur the rest of the view, it will be awesome. Any ideas? Thanks in advance!

+4
source share
3 answers

why not just use a custom view presented as a modal view. There are several new presentation styles on the iPad (see the UIViewController link), and it blurs / disallows a click in the background. Another iPad option would be the UIPopoverController.

+2
source

Have you considered using two CALayers, translucent white or black, which contain the effect of blurring and adding another for your user data?

You can use backgroundfilters for the backlayer to blur the main look.

Edit: Sorry, just read that the filters that I think of are currently not supported for iOS ... but think about making backlayer only translucent might also give a nice touch.

0
source

Thanks for the responses guys!

I really decided to go with a dynamic popover that is created when the user clicks on a cell. I have the necessary functions. I think that the viewView tableView method would work if it got worse. Thanks again.

0
source

All Articles