Guest User

Untitled

a guest
Jun 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. UIScrollView* ScrollView;
  2.  
  3. if([[[UIDevice currentDevice] systemVersion] hasPrefix:@"2"])
  4. {
  5. ScrollView = [[UIView alloc] initWithFrame:CGRectMake(15.0f, 20.0f, 287.0f, ExtraButtonsTop - 20.0f)];
  6. }
  7. else
  8. {
  9. ScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(15.0f, 20.0f, 287.0f, ExtraButtonsTop - 20.0f)];
  10. struct CGSize ContentSize = {(15.0f + (((([toggleArray count] - 1) / 12) + 1) * 272.0f)), (ExtraButtonsTop - 20.0f)};
  11. [ScrollView setContentSize:ContentSize];
  12. ScrollView.pagingEnabled = YES;
  13. }
Add Comment
Please, Sign In to add comment