Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4430b9c381
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (29 sloc) 1.069 kB
//
// ReviewSummaryView.h
// AppSales
//
// Created by Ole Zorn on 27.07.11.
// Copyright 2011 omz:software. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ReviewSummaryView;
@protocol ReviewSummaryViewDataSource <NSObject>
- (NSUInteger)reviewSummaryView:(ReviewSummaryView *)view numberOfReviewsForRating:(NSInteger)rating;
- (NSUInteger)reviewSummaryView:(ReviewSummaryView *)view numberOfUnreadReviewsForRating:(NSInteger)rating;
@end
@protocol ReviewSummaryViewDelegate <NSObject>
- (void)reviewSummaryView:(ReviewSummaryView *)view didSelectRating:(NSInteger)rating;
@end
@interface ReviewSummaryView : UIView {
id<ReviewSummaryViewDataSource> dataSource;
id<ReviewSummaryViewDelegate> delegate;
NSMutableArray *barViews;
NSMutableArray *barLabels;
UILabel *averageLabel;
UILabel *sumLabel;
}
@property (nonatomic, assign) id<ReviewSummaryViewDataSource> dataSource;
@property (nonatomic, assign) id<ReviewSummaryViewDelegate> delegate;
- (void)reloadDataAnimated:(BOOL)animated;
- (CGRect)barFrameForRating:(NSInteger)rating;
@end
Jump to Line
Something went wrong with that request. Please try again.