appunite / CLCascade

Twitter-like cascade UI library
http://appunite.com/
Other
504 stars 67 forks source link

Delete and ignore XCode private user data files #3

Closed grgcombs closed 13 years ago

grgcombs commented 13 years ago

Xcode drops in various user data files whenever you open the project. But these are specific to individual users, unnecessary for version tracking as a whole

grgcombs commented 13 years ago

This pull request now allows for variable view widths ... preserves the width of views that may already have their width set (as in a nib) ...

ghost commented 13 years ago

In latest lib there are some issues

1) tap on one category, then click on tableview, tap to right top one and then last one, all views removed from cascade.

Solution: I just replace these lines: // pop all pages [_cascadeView popAllPagesAnimated: YES]; // remove all controllers [_viewControllers removeAllObjects];

with these: // index of last page NSUInteger index = [_viewControllers count] - 1; // pop page from back NSEnumerator* enumerator = [_viewControllers reverseObjectEnumerator]; // enumarate pages while ([enumerator nextObject] && _viewControllers.count > 1) { // pop page at index [cascadeView popPageAtIndex:index animated:NO]; [_viewControllers removeLastObject]; index--; } [cascadeView loadPageAtIndex:0];

and add this line in CLCascadeView at line number 236 in - (void) popPageAtIndex:(NSInteger)index animated:(BOOL)animated method: // update content size [self setProperContentSize];

grgcombs commented 13 years ago

Make sure to post this as an issue on creativelabs/CLCascade, instead of this dated/closed pull request from one of it's users.