English 中文(简体)
Dock an item on top of UITableView like imdb app on ipad?
原标题:

I want to do something similar to the left UITableView on imdb app on ipad. Once you have selected an item, it will become the first item on the top and it will dock there. When you flick the list below, it will always be there. Anyone has any suggestion on how I can achieve that?

最佳回答

That s not part of that UITableView.

It is a seperate UITableView with a custom UITableViewCell that is actually the same as in the UITableView with all the information about the selected film or character ...

When no film is selected, that second UITableView isn t visible. But as soon as you select an item, that UITableView at the top will become visible with the information about the selected item. That means that you will have to reduce the height of the UITableView (with the detail info about that item) so that the UITableView at the top will get some space for being displayed. Everytime you change the item, you need to update the UITableView using the general delegation and datasource methods for a table view. Once there s nothing selected, you just set the upper table view to hidden, and set the other table view s height to the full height.

That s all.

问题回答

暂无回答




相关问题
How to suppress/remove PHP session cookie

I need to suppress an already set session cookie header, but I cannot find any way to do this. Why? I need to make an image, sent by a PHP script, cacheable by the end user; this image is used to ...

Why is my page still executing?

I have a form that posts to a processing script which checks for errors in the post. Depending on the processing it header redirects to another location. This appeared to work but I have just noticed ...

How to stop floating (sliding) div at footer

How can I have a sliding menu div that doesn t move unless the page is scrolled down past a certain point I used the code from this link for a floating menu. it has how to stop the stop float at ...

Better way to share header file between separate vc project?

How would you organize your vc projects source code to share the same header file? put the header in a common folder, and have every vc projects include it. put the header in a vc project, and have ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I ve tested some headers and done research, ...

热门标签