Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIScrollView* ScrollView;
- if([[[UIDevice currentDevice] systemVersion] hasPrefix:@"2"])
- {
- ScrollView = [[UIView alloc] initWithFrame:CGRectMake(15.0f, 20.0f, 287.0f, ExtraButtonsTop - 20.0f)];
- }
- else
- {
- ScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(15.0f, 20.0f, 287.0f, ExtraButtonsTop - 20.0f)];
- struct CGSize ContentSize = {(15.0f + (((([toggleArray count] - 1) / 12) + 1) * 272.0f)), (ExtraButtonsTop - 20.0f)};
- [ScrollView setContentSize:ContentSize];
- ScrollView.pagingEnabled = YES;
- }
Add Comment
Please, Sign In to add comment