Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created December 18, 2012 15:35
Show Gist options
  • Save jontelang/4329009 to your computer and use it in GitHub Desktop.
Save jontelang/4329009 to your computer and use it in GitHub Desktop.
SBiconview
%hook SBIconView
@interface SBIconView : UIView
@end
-(void)updateBadge{
%orig;
UIImageView *v = MSHookIvar<UIImageView *>(self, "_badgeView");
[v setCenter:CGPointMake(self.bounds.size.width/2,self.bounds.origin.y)];
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment