Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created June 2, 2013 09:11
Show Gist options
  • Save jontelang/5693107 to your computer and use it in GitHub Desktop.
Save jontelang/5693107 to your computer and use it in GitHub Desktop.
hook SBBulletinListController
-(void)positionListViewAtY:(float)arg1
{
NSLog(@"1");
SBBulletinListView *xxx = MSHookIvar<SBBulletinListView*>(self,"_listView");
NSLog(@"2");
float original_height = [xxx onscreenY];
NSLog(@"3");
UIStatusBar* sb = MSHookIvar<UIStatusBar*>(xxx,"_statusBar");
NSLog(@"4");
UIScrollView* v = MSHookIvar<UIScrollView*>(xxx,"_tableView");
NSLog(@"5");
float cs = v.contentSize.height + 20;
NSLog(@"6");
float newY = original_height - cs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment