0

I want to implement a wheel like infinte scrolling Rating tool like the below image.

No i had taken an scrollview and set the orange image in scrollview

- (void)viewWillAppear:(BOOL)animated
{  
 UIImageView * headerImage = [[UIImageView alloc] init];
 headerImage.image = [UIImage imageNamed:@"img_2.png"];    
 SCrl_Wheel.backgroundColor = [UIColor colorWithPatternImage:headerImage.image];
 [SCrl_Wheel setContentSize:CGSizeMake(500,0)]; 
 [SCrl_Wheel setShowsHorizontalScrollIndicator:NO]; 
 Lbl_Rate.text=@"0";
 [super viewWillAppear:animated];    
}
Guru
  • 21,652
  • 10
  • 63
  • 102
ios developer
  • 3,363
  • 3
  • 51
  • 111

1 Answers1

3

Apple has an example project featuring infinite scrolling it's called StreetScroller, which demonstrates how a UIScrollView subclass can scroll infinitely in the horizontal direction. There is also an UIScrollView subclass on Github called BAGPagingScrollView, which is paging & infinite, but it has a few bugs you have to fix on your own, because it's not under active development (especially the goToPage: method leads to problems). I hope this helps you.

Also check this link for easy implementation they also have a sample code attached :)

http://mobiledevelopertips.com/user-interface/creating-circular-and-infinite-uiscrollviews.html

IronManGill
  • 7,222
  • 2
  • 31
  • 52
  • Please check this link also http://stackoverflow.com/questions/3430267/uiscrollview-infinite-scrolling – IronManGill Oct 13 '12 at 08:12
  • Thanks for the quick reply.But there is no paging in this scrolling,I had not added any image or label in uiscrollview.I had just added image itself in uiscrollview.So how did i do paging and manage paging becoz if i do paging then it might be possible to check for infinite scrolling condition – ios developer Oct 13 '12 at 08:14
  • please check if this link would be helpful to you .. http://stackoverflow.com/questions/8246988/scrolling-a-horizontal-uiscrollview-in-stepped-increments – IronManGill Oct 13 '12 at 08:17
  • thank you very much But i had already gone this links.But my question is i dont want any paging in my scrollview.It should rotate like and wheel.I want a condition which give scrolling to my scroll at infinite way and also i am able to note the rating of (paging number) from 1-10 – ios developer Oct 13 '12 at 08:25