KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I could only find if one wants to display scroll bar or not using tableView.showsVerticalScrollIndicator = YES/NO; but how can I customize the scroll bar for colour, width and if possible other features? Any help will be greatly appreciated. EDIT: I got this idea from code snippets where one must find Google logo in MKMapKit and relocate it somewhere so that it remains visible. by following method one can set custom image to scroll bar of UItbaleview. But I found nothing on changing size of scroll bar. -(void) ViewDidLoad { UIImageView *testView = [self.tableView.subviews objectAtIndex:1]; UIImage *Img = [UIImage imageNamed:@"image.png"]; [testView setImage:Img]; } EDIT: As suggested by Nekto you can use following to change width. CGRect frame = testView.frame; frame.size.width = 10; //set any value you want. testView.frame = frame;
Tags (comma-separated)
Save Edits
Cancel