joshbetz / Hypersonic

An iOS app for streaming music from a Subsonic server and other cloud services
http://joshbetz.github.com/Hypersonic
15 stars 3 forks source link

Hook up searches in list views and initially scroll past them #10

Closed joshbetz closed 12 years ago

joshbetz commented 12 years ago

Setting up the search is pretty self explanatory. I think we should also set the views that have a search in them to initially start with them scrolled off the screen, so that the top of the screen starts with the first item in the list. Then, you can pull down to reveal the search bar - it seems to be pretty common functionality when search bars are present.

joshbetz commented 12 years ago

The artist view initially scrolls past the search bar now, it was just 3 lines of code

[self.tableView reloadData];
NSIndexPath *scrollToPath = [NSIndexPath indexPathForRow:0 inSection:0]; 
[self.tableView scrollToRowAtIndexPath:scrollToPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
toloumi commented 12 years ago

Alphabetic scroll bar on artists tab is in the way of the search bar's "x" button, will see about this as well

toloumi commented 12 years ago

Sorry that took sooooo long. It was surely stuck in search land... Debugging now (off by 1 issue). Then moving on to one of the other broken issues

joshbetz commented 12 years ago

Nice! Let me know if you have trouble merging at all.

toloumi commented 12 years ago

Everything works great, I believe I committed successfully let me know if you guys see it or notice any problems.