Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

iOS 星星评分视图控件,点击和滑动评分。

License

NotificationsYou must be signed in to change notification settings

TinyQ/TQStarRatingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

星星评分控件

iOS 星星评分视图控件,点击和滑动评分。

控件效果

Image text

初始化

TQStarRatingView *starRatingView = [[TQStarRatingViewalloc]initWithFrame:CGRectMake(30,200,250,50)numberOfStar:5];starRatingView.delegate = self;[self.viewaddSubview:starRatingView];

委托回调处理分数变更

-(void)starRatingView:(TQStarRatingView *)view score:(float)score{    self.scoreLabel.text = [NSStringstringWithFormat:@"%0.2f",score *10 ];}

用代码设置分数 参数需要在0-1之间。

[self.starRatingViewsetScore:0.5fwithAnimation:YES];
[self.starRatingViewsetScore:0.5fwithAnimation:YEScompletion:^(BOOL finished){NSLog(@"%@",@"starOver");}];

About TinyQ

About

iOS 星星评分视图控件,点击和滑动评分。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp