Full Code of wangchaoIOS/StarRatingView for AI

master f152fd28e901 cached
18 files
39.6 KB
12.9k tokens
1 requests
Download .txt
Repository: wangchaoIOS/StarRatingView
Branch: master
Commit: f152fd28e901
Files: 18
Total size: 39.6 KB

Directory structure:
gitextract_9s4h_ra3/

├── CWStarRatingViewDemo/
│   ├── AppDelegate.h
│   ├── AppDelegate.m
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── CWStarRateView.h
│   ├── CWStarRateView.m
│   ├── Images.xcassets/
│   │   └── AppIcon.appiconset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── ViewController.h
│   ├── ViewController.m
│   └── main.m
├── CWStarRatingViewDemo.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   └── contents.xcworkspacedata
│   └── xcuserdata/
│       └── wangchao.xcuserdatad/
│           └── xcschemes/
│               ├── CWStarRatingViewDemo.xcscheme
│               └── xcschememanagement.plist
├── CWStarRatingViewDemoTests/
│   ├── CWStarRatingViewDemoTests.m
│   └── Info.plist
└── README.md

================================================
FILE CONTENTS
================================================

================================================
FILE: CWStarRatingViewDemo/AppDelegate.h
================================================
//
//  AppDelegate.h
//  CWStarRatingViewDemo
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;


@end



================================================
FILE: CWStarRatingViewDemo/AppDelegate.m
================================================
//
//  AppDelegate.m
//  CWStarRatingViewDemo
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end


================================================
FILE: CWStarRatingViewDemo/Base.lproj/LaunchScreen.xib
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
        <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="  Copyright (c) 2014年 wangchao. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
                    <rect key="frame" x="20" y="439" width="441" height="21"/>
                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                </label>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="CWStarRatingViewDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
                    <rect key="frame" x="20" y="140" width="441" height="43"/>
                    <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                </label>
            </subviews>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
            <constraints>
                <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
                <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
                <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
                <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
                <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
                <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
            </constraints>
            <nil key="simulatedStatusBarMetrics"/>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="548" y="455"/>
        </view>
    </objects>
</document>


================================================
FILE: CWStarRatingViewDemo/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
    </dependencies>
    <scenes>
        <!--View Controller-->
        <scene sceneID="ufC-wZ-h7g">
            <objects>
                <viewController id="vXZ-lx-hvc" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
                        <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
            </objects>
        </scene>
    </scenes>
</document>


================================================
FILE: CWStarRatingViewDemo/CWStarRateView.h
================================================
//
//  CWStarRateView.h
//  StarRateDemo
//
//  Created by WANGCHAO on 14/11/4.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CWStarRateView;
@protocol CWStarRateViewDelegate <NSObject>
@optional
- (void)starRateView:(CWStarRateView *)starRateView scroePercentDidChange:(CGFloat)newScorePercent;
@end

@interface CWStarRateView : UIView

@property (nonatomic, assign) CGFloat scorePercent;//得分值,范围为0--1,默认为1
@property (nonatomic, assign) BOOL hasAnimation;//是否允许动画,默认为NO
@property (nonatomic, assign) BOOL allowIncompleteStar;//评分时是否允许不是整星,默认为NO

@property (nonatomic, weak) id<CWStarRateViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame numberOfStars:(NSInteger)numberOfStars;

@end

================================================
FILE: CWStarRatingViewDemo/CWStarRateView.m
================================================
//
//  CWStarRateView.m
//  StarRateDemo
//
//  Created by WANGCHAO on 14/11/4.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import "CWStarRateView.h"

#define FOREGROUND_STAR_IMAGE_NAME @"b27_icon_star_yellow"
#define BACKGROUND_STAR_IMAGE_NAME @"b27_icon_star_gray"
#define DEFALUT_STAR_NUMBER 5
#define ANIMATION_TIME_INTERVAL 0.2

@interface CWStarRateView ()

@property (nonatomic, strong) UIView *foregroundStarView;
@property (nonatomic, strong) UIView *backgroundStarView;

@property (nonatomic, assign) NSInteger numberOfStars;

@end

@implementation CWStarRateView

#pragma mark - Init Methods
- (instancetype)init {
    NSAssert(NO, @"You should never call this method in this class. Use initWithFrame: instead!");
    return nil;
}

- (instancetype)initWithFrame:(CGRect)frame {
    return [self initWithFrame:frame numberOfStars:DEFALUT_STAR_NUMBER];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        _numberOfStars = DEFALUT_STAR_NUMBER;
        [self buildDataAndUI];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame numberOfStars:(NSInteger)numberOfStars {
    if (self = [super initWithFrame:frame]) {
        _numberOfStars = numberOfStars;
        [self buildDataAndUI];
    }
    return self;
}

#pragma mark - Private Methods

- (void)buildDataAndUI {
    _scorePercent = 1;//默认为1
    _hasAnimation = NO;//默认为NO
    _allowIncompleteStar = NO;//默认为NO

    self.foregroundStarView = [self createStarViewWithImage:FOREGROUND_STAR_IMAGE_NAME];
    self.backgroundStarView = [self createStarViewWithImage:BACKGROUND_STAR_IMAGE_NAME];
    
    [self addSubview:self.backgroundStarView];
    [self addSubview:self.foregroundStarView];
    
    UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(userTapRateView:)];
    tapGesture.numberOfTapsRequired = 1;
    [self addGestureRecognizer:tapGesture];
}

- (void)userTapRateView:(UITapGestureRecognizer *)gesture {
    CGPoint tapPoint = [gesture locationInView:self];
    CGFloat offset = tapPoint.x;
    CGFloat realStarScore = offset / (self.bounds.size.width / self.numberOfStars);
    CGFloat starScore = self.allowIncompleteStar ? realStarScore : ceilf(realStarScore);
    self.scorePercent = starScore / self.numberOfStars;
}

- (UIView *)createStarViewWithImage:(NSString *)imageName {
    UIView *view = [[UIView alloc] initWithFrame:self.bounds];
    view.clipsToBounds = YES;
    view.backgroundColor = [UIColor clearColor];
    for (NSInteger i = 0; i < self.numberOfStars; i ++)
    {
        UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
        imageView.frame = CGRectMake(i * self.bounds.size.width / self.numberOfStars, 0, self.bounds.size.width / self.numberOfStars, self.bounds.size.height);
        imageView.contentMode = UIViewContentModeScaleAspectFit;
        [view addSubview:imageView];
    }
    return view;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    __weak CWStarRateView *weakSelf = self;
    CGFloat animationTimeInterval = self.hasAnimation ? ANIMATION_TIME_INTERVAL : 0;
    [UIView animateWithDuration:animationTimeInterval animations:^{
       weakSelf.foregroundStarView.frame = CGRectMake(0, 0, weakSelf.bounds.size.width * weakSelf.scorePercent, weakSelf.bounds.size.height);
    }];
}

#pragma mark - Get and Set Methods

- (void)setScorePercent:(CGFloat)scroePercent {
    if (_scorePercent == scroePercent) {
        return;
    }
    
    if (scroePercent < 0) {
        _scorePercent = 0;
    } else if (scroePercent > 1) {
        _scorePercent = 1;
    } else {
        _scorePercent = scroePercent;
    }
    
    if ([self.delegate respondsToSelector:@selector(starRateView:scroePercentDidChange:)]) {
        [self.delegate starRateView:self scroePercentDidChange:scroePercent];
    }
    
    [self setNeedsLayout];
}

@end


================================================
FILE: CWStarRatingViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "iphone",
      "size" : "29x29",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "29x29",
      "scale" : "3x"
    },
    {
      "idiom" : "iphone",
      "size" : "40x40",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "40x40",
      "scale" : "3x"
    },
    {
      "idiom" : "iphone",
      "size" : "60x60",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "60x60",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: CWStarRatingViewDemo/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>tagged.$(PRODUCT_NAME:rfc1034identifier)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>armv7</string>
	</array>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
</dict>
</plist>


================================================
FILE: CWStarRatingViewDemo/ViewController.h
================================================
//
//  ViewController.h
//  CWStarRatingViewDemo
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController


@end



================================================
FILE: CWStarRatingViewDemo/ViewController.m
================================================
//
//  ViewController.m
//  CWStarRatingViewDemo
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import "ViewController.h"

#import "ViewController.h"
#import "CWStarRateView.h"

@interface ViewController ()

@property (strong, nonatomic) CWStarRateView *starRateView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.starRateView = [[CWStarRateView alloc] initWithFrame:CGRectMake(10, 100, 300, 40) numberOfStars:5];
    self.starRateView.scorePercent = 0.3;
    self.starRateView.allowIncompleteStar = YES;
    self.starRateView.hasAnimation = YES;
    [self.view addSubview:self.starRateView];
}

@end


================================================
FILE: CWStarRatingViewDemo/main.m
================================================
//
//  main.m
//  CWStarRatingViewDemo
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"

int main(int argc, char * argv[]) {
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}


================================================
FILE: CWStarRatingViewDemo.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		7FE671F01A0E63A400E2D872 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE671EF1A0E63A400E2D872 /* main.m */; };
		7FE671F31A0E63A400E2D872 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE671F21A0E63A400E2D872 /* AppDelegate.m */; };
		7FE671F61A0E63A400E2D872 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE671F51A0E63A400E2D872 /* ViewController.m */; };
		7FE671F91A0E63A400E2D872 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7FE671F71A0E63A400E2D872 /* Main.storyboard */; };
		7FE671FB1A0E63A400E2D872 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7FE671FA1A0E63A400E2D872 /* Images.xcassets */; };
		7FE671FE1A0E63A400E2D872 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7FE671FC1A0E63A400E2D872 /* LaunchScreen.xib */; };
		7FE6720A1A0E63A400E2D872 /* CWStarRatingViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE672091A0E63A400E2D872 /* CWStarRatingViewDemoTests.m */; };
		7FE672151A0E63B700E2D872 /* CWStarRateView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE672141A0E63B700E2D872 /* CWStarRateView.m */; };
		7FE672191A0E644500E2D872 /* b27_icon_star_gray@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FE672171A0E644500E2D872 /* b27_icon_star_gray@2x.png */; };
		7FE6721A1A0E644500E2D872 /* b27_icon_star_yellow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FE672181A0E644500E2D872 /* b27_icon_star_yellow@2x.png */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
		7FE672041A0E63A400E2D872 /* PBXContainerItemProxy */ = {
			isa = PBXContainerItemProxy;
			containerPortal = 7FE671E21A0E63A400E2D872 /* Project object */;
			proxyType = 1;
			remoteGlobalIDString = 7FE671E91A0E63A400E2D872;
			remoteInfo = CWStarRatingViewDemo;
		};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
		7FE671EA1A0E63A400E2D872 /* CWStarRatingViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CWStarRatingViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
		7FE671EE1A0E63A400E2D872 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		7FE671EF1A0E63A400E2D872 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
		7FE671F11A0E63A400E2D872 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
		7FE671F21A0E63A400E2D872 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
		7FE671F41A0E63A400E2D872 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
		7FE671F51A0E63A400E2D872 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
		7FE671F81A0E63A400E2D872 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
		7FE671FA1A0E63A400E2D872 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
		7FE671FD1A0E63A400E2D872 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
		7FE672031A0E63A400E2D872 /* CWStarRatingViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CWStarRatingViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
		7FE672081A0E63A400E2D872 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		7FE672091A0E63A400E2D872 /* CWStarRatingViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CWStarRatingViewDemoTests.m; sourceTree = "<group>"; };
		7FE672131A0E63B700E2D872 /* CWStarRateView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CWStarRateView.h; sourceTree = "<group>"; };
		7FE672141A0E63B700E2D872 /* CWStarRateView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CWStarRateView.m; sourceTree = "<group>"; };
		7FE672171A0E644500E2D872 /* b27_icon_star_gray@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "b27_icon_star_gray@2x.png"; sourceTree = "<group>"; };
		7FE672181A0E644500E2D872 /* b27_icon_star_yellow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "b27_icon_star_yellow@2x.png"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		7FE671E71A0E63A400E2D872 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		7FE672001A0E63A400E2D872 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		7FE671E11A0E63A400E2D872 = {
			isa = PBXGroup;
			children = (
				7FE671EC1A0E63A400E2D872 /* CWStarRatingViewDemo */,
				7FE672061A0E63A400E2D872 /* CWStarRatingViewDemoTests */,
				7FE671EB1A0E63A400E2D872 /* Products */,
			);
			sourceTree = "<group>";
		};
		7FE671EB1A0E63A400E2D872 /* Products */ = {
			isa = PBXGroup;
			children = (
				7FE671EA1A0E63A400E2D872 /* CWStarRatingViewDemo.app */,
				7FE672031A0E63A400E2D872 /* CWStarRatingViewDemoTests.xctest */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		7FE671EC1A0E63A400E2D872 /* CWStarRatingViewDemo */ = {
			isa = PBXGroup;
			children = (
				7FE672161A0E642C00E2D872 /* CWStarRateView */,
				7FE671F11A0E63A400E2D872 /* AppDelegate.h */,
				7FE671F21A0E63A400E2D872 /* AppDelegate.m */,
				7FE671F41A0E63A400E2D872 /* ViewController.h */,
				7FE671F51A0E63A400E2D872 /* ViewController.m */,
				7FE671F71A0E63A400E2D872 /* Main.storyboard */,
				7FE671FA1A0E63A400E2D872 /* Images.xcassets */,
				7FE671FC1A0E63A400E2D872 /* LaunchScreen.xib */,
				7FE671ED1A0E63A400E2D872 /* Supporting Files */,
			);
			path = CWStarRatingViewDemo;
			sourceTree = "<group>";
		};
		7FE671ED1A0E63A400E2D872 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				7FE671EE1A0E63A400E2D872 /* Info.plist */,
				7FE671EF1A0E63A400E2D872 /* main.m */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		7FE672061A0E63A400E2D872 /* CWStarRatingViewDemoTests */ = {
			isa = PBXGroup;
			children = (
				7FE672091A0E63A400E2D872 /* CWStarRatingViewDemoTests.m */,
				7FE672071A0E63A400E2D872 /* Supporting Files */,
			);
			path = CWStarRatingViewDemoTests;
			sourceTree = "<group>";
		};
		7FE672071A0E63A400E2D872 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				7FE672081A0E63A400E2D872 /* Info.plist */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		7FE672161A0E642C00E2D872 /* CWStarRateView */ = {
			isa = PBXGroup;
			children = (
				7FE672171A0E644500E2D872 /* b27_icon_star_gray@2x.png */,
				7FE672181A0E644500E2D872 /* b27_icon_star_yellow@2x.png */,
				7FE672131A0E63B700E2D872 /* CWStarRateView.h */,
				7FE672141A0E63B700E2D872 /* CWStarRateView.m */,
			);
			name = CWStarRateView;
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		7FE671E91A0E63A400E2D872 /* CWStarRatingViewDemo */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 7FE6720D1A0E63A400E2D872 /* Build configuration list for PBXNativeTarget "CWStarRatingViewDemo" */;
			buildPhases = (
				7FE671E61A0E63A400E2D872 /* Sources */,
				7FE671E71A0E63A400E2D872 /* Frameworks */,
				7FE671E81A0E63A400E2D872 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = CWStarRatingViewDemo;
			productName = CWStarRatingViewDemo;
			productReference = 7FE671EA1A0E63A400E2D872 /* CWStarRatingViewDemo.app */;
			productType = "com.apple.product-type.application";
		};
		7FE672021A0E63A400E2D872 /* CWStarRatingViewDemoTests */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 7FE672101A0E63A400E2D872 /* Build configuration list for PBXNativeTarget "CWStarRatingViewDemoTests" */;
			buildPhases = (
				7FE671FF1A0E63A400E2D872 /* Sources */,
				7FE672001A0E63A400E2D872 /* Frameworks */,
				7FE672011A0E63A400E2D872 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
				7FE672051A0E63A400E2D872 /* PBXTargetDependency */,
			);
			name = CWStarRatingViewDemoTests;
			productName = CWStarRatingViewDemoTests;
			productReference = 7FE672031A0E63A400E2D872 /* CWStarRatingViewDemoTests.xctest */;
			productType = "com.apple.product-type.bundle.unit-test";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		7FE671E21A0E63A400E2D872 /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastUpgradeCheck = 0610;
				ORGANIZATIONNAME = wangchao;
				TargetAttributes = {
					7FE671E91A0E63A400E2D872 = {
						CreatedOnToolsVersion = 6.1;
					};
					7FE672021A0E63A400E2D872 = {
						CreatedOnToolsVersion = 6.1;
						TestTargetID = 7FE671E91A0E63A400E2D872;
					};
				};
			};
			buildConfigurationList = 7FE671E51A0E63A400E2D872 /* Build configuration list for PBXProject "CWStarRatingViewDemo" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = English;
			hasScannedForEncodings = 0;
			knownRegions = (
				en,
				Base,
			);
			mainGroup = 7FE671E11A0E63A400E2D872;
			productRefGroup = 7FE671EB1A0E63A400E2D872 /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				7FE671E91A0E63A400E2D872 /* CWStarRatingViewDemo */,
				7FE672021A0E63A400E2D872 /* CWStarRatingViewDemoTests */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		7FE671E81A0E63A400E2D872 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				7FE672191A0E644500E2D872 /* b27_icon_star_gray@2x.png in Resources */,
				7FE6721A1A0E644500E2D872 /* b27_icon_star_yellow@2x.png in Resources */,
				7FE671F91A0E63A400E2D872 /* Main.storyboard in Resources */,
				7FE671FE1A0E63A400E2D872 /* LaunchScreen.xib in Resources */,
				7FE671FB1A0E63A400E2D872 /* Images.xcassets in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		7FE672011A0E63A400E2D872 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		7FE671E61A0E63A400E2D872 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				7FE671F61A0E63A400E2D872 /* ViewController.m in Sources */,
				7FE671F31A0E63A400E2D872 /* AppDelegate.m in Sources */,
				7FE672151A0E63B700E2D872 /* CWStarRateView.m in Sources */,
				7FE671F01A0E63A400E2D872 /* main.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		7FE671FF1A0E63A400E2D872 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				7FE6720A1A0E63A400E2D872 /* CWStarRatingViewDemoTests.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
		7FE672051A0E63A400E2D872 /* PBXTargetDependency */ = {
			isa = PBXTargetDependency;
			target = 7FE671E91A0E63A400E2D872 /* CWStarRatingViewDemo */;
			targetProxy = 7FE672041A0E63A400E2D872 /* PBXContainerItemProxy */;
		};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
		7FE671F71A0E63A400E2D872 /* Main.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				7FE671F81A0E63A400E2D872 /* Base */,
			);
			name = Main.storyboard;
			sourceTree = "<group>";
		};
		7FE671FC1A0E63A400E2D872 /* LaunchScreen.xib */ = {
			isa = PBXVariantGroup;
			children = (
				7FE671FD1A0E63A400E2D872 /* Base */,
			);
			name = LaunchScreen.xib;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		7FE6720B1A0E63A400E2D872 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.1;
				MTL_ENABLE_DEBUG_INFO = YES;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = iphoneos;
			};
			name = Debug;
		};
		7FE6720C1A0E63A400E2D872 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = YES;
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.1;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = iphoneos;
				VALIDATE_PRODUCT = YES;
			};
			name = Release;
		};
		7FE6720E1A0E63A400E2D872 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				INFOPLIST_FILE = CWStarRatingViewDemo/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
			};
			name = Debug;
		};
		7FE6720F1A0E63A400E2D872 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				INFOPLIST_FILE = CWStarRatingViewDemo/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
			};
			name = Release;
		};
		7FE672111A0E63A400E2D872 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				INFOPLIST_FILE = CWStarRatingViewDemoTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CWStarRatingViewDemo.app/CWStarRatingViewDemo";
			};
			name = Debug;
		};
		7FE672121A0E63A400E2D872 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				INFOPLIST_FILE = CWStarRatingViewDemoTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CWStarRatingViewDemo.app/CWStarRatingViewDemo";
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		7FE671E51A0E63A400E2D872 /* Build configuration list for PBXProject "CWStarRatingViewDemo" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				7FE6720B1A0E63A400E2D872 /* Debug */,
				7FE6720C1A0E63A400E2D872 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		7FE6720D1A0E63A400E2D872 /* Build configuration list for PBXNativeTarget "CWStarRatingViewDemo" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				7FE6720E1A0E63A400E2D872 /* Debug */,
				7FE6720F1A0E63A400E2D872 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
		};
		7FE672101A0E63A400E2D872 /* Build configuration list for PBXNativeTarget "CWStarRatingViewDemoTests" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				7FE672111A0E63A400E2D872 /* Debug */,
				7FE672121A0E63A400E2D872 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
		};
/* End XCConfigurationList section */
	};
	rootObject = 7FE671E21A0E63A400E2D872 /* Project object */;
}


================================================
FILE: CWStarRatingViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "self:CWStarRatingViewDemo.xcodeproj">
   </FileRef>
</Workspace>


================================================
FILE: CWStarRatingViewDemo.xcodeproj/xcuserdata/wangchao.xcuserdatad/xcschemes/CWStarRatingViewDemo.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
   LastUpgradeVersion = "0610"
   version = "1.3">
   <BuildAction
      parallelizeBuildables = "YES"
      buildImplicitDependencies = "YES">
      <BuildActionEntries>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "7FE671E91A0E63A400E2D872"
               BuildableName = "CWStarRatingViewDemo.app"
               BlueprintName = "CWStarRatingViewDemo"
               ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "NO"
            buildForArchiving = "NO"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "7FE672021A0E63A400E2D872"
               BuildableName = "CWStarRatingViewDemoTests.xctest"
               BlueprintName = "CWStarRatingViewDemoTests"
               ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES"
      buildConfiguration = "Debug">
      <Testables>
         <TestableReference
            skipped = "NO">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "7FE672021A0E63A400E2D872"
               BuildableName = "CWStarRatingViewDemoTests.xctest"
               BlueprintName = "CWStarRatingViewDemoTests"
               ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
            </BuildableReference>
         </TestableReference>
      </Testables>
      <MacroExpansion>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "7FE671E91A0E63A400E2D872"
            BuildableName = "CWStarRatingViewDemo.app"
            BlueprintName = "CWStarRatingViewDemo"
            ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
         </BuildableReference>
      </MacroExpansion>
   </TestAction>
   <LaunchAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      launchStyle = "0"
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Debug"
      ignoresPersistentStateOnLaunch = "NO"
      debugDocumentVersioning = "YES"
      allowLocationSimulation = "YES">
      <BuildableProductRunnable>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "7FE671E91A0E63A400E2D872"
            BuildableName = "CWStarRatingViewDemo.app"
            BlueprintName = "CWStarRatingViewDemo"
            ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
      <AdditionalOptions>
      </AdditionalOptions>
   </LaunchAction>
   <ProfileAction
      shouldUseLaunchSchemeArgsEnv = "YES"
      savedToolIdentifier = ""
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Release"
      debugDocumentVersioning = "YES">
      <BuildableProductRunnable>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "7FE671E91A0E63A400E2D872"
            BuildableName = "CWStarRatingViewDemo.app"
            BlueprintName = "CWStarRatingViewDemo"
            ReferencedContainer = "container:CWStarRatingViewDemo.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
   </ProfileAction>
   <AnalyzeAction
      buildConfiguration = "Debug">
   </AnalyzeAction>
   <ArchiveAction
      buildConfiguration = "Release"
      revealArchiveInOrganizer = "YES">
   </ArchiveAction>
</Scheme>


================================================
FILE: CWStarRatingViewDemo.xcodeproj/xcuserdata/wangchao.xcuserdatad/xcschemes/xcschememanagement.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>SchemeUserState</key>
	<dict>
		<key>CWStarRatingViewDemo.xcscheme</key>
		<dict>
			<key>orderHint</key>
			<integer>0</integer>
		</dict>
	</dict>
	<key>SuppressBuildableAutocreation</key>
	<dict>
		<key>7FE671E91A0E63A400E2D872</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
		<key>7FE672021A0E63A400E2D872</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
	</dict>
</dict>
</plist>


================================================
FILE: CWStarRatingViewDemoTests/CWStarRatingViewDemoTests.m
================================================
//
//  CWStarRatingViewDemoTests.m
//  CWStarRatingViewDemoTests
//
//  Created by WANGCHAO on 14/11/8.
//  Copyright (c) 2014年 wangchao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

@interface CWStarRatingViewDemoTests : XCTestCase

@end

@implementation CWStarRatingViewDemoTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample {
    // This is an example of a functional test case.
    XCTAssert(YES, @"Pass");
}

- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

@end


================================================
FILE: CWStarRatingViewDemoTests/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>tagged.$(PRODUCT_NAME:rfc1034identifier)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
</dict>
</plist>


================================================
FILE: README.md
================================================
StarRatingView
==============

星级评分,支持显示部分星星,支持动画
![image](https://github.com/wangchaoIOS/StarRatingView/blob/master/Screen%20Shot.png)
Download .txt
gitextract_9s4h_ra3/

├── CWStarRatingViewDemo/
│   ├── AppDelegate.h
│   ├── AppDelegate.m
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── CWStarRateView.h
│   ├── CWStarRateView.m
│   ├── Images.xcassets/
│   │   └── AppIcon.appiconset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── ViewController.h
│   ├── ViewController.m
│   └── main.m
├── CWStarRatingViewDemo.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   └── contents.xcworkspacedata
│   └── xcuserdata/
│       └── wangchao.xcuserdatad/
│           └── xcschemes/
│               ├── CWStarRatingViewDemo.xcscheme
│               └── xcschememanagement.plist
├── CWStarRatingViewDemoTests/
│   ├── CWStarRatingViewDemoTests.m
│   └── Info.plist
└── README.md
Condensed preview — 18 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (45K chars).
[
  {
    "path": "CWStarRatingViewDemo/AppDelegate.h",
    "chars": 287,
    "preview": "//\n//  AppDelegate.h\n//  CWStarRatingViewDemo\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c) 2014年 wangchao. A"
  },
  {
    "path": "CWStarRatingViewDemo/AppDelegate.m",
    "chars": 2041,
    "preview": "//\n//  AppDelegate.m\n//  CWStarRatingViewDemo\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c) 2014年 wangchao. A"
  },
  {
    "path": "CWStarRatingViewDemo/Base.lproj/LaunchScreen.xib",
    "chars": 3714,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" versi"
  },
  {
    "path": "CWStarRatingViewDemo/Base.lproj/Main.storyboard",
    "chars": 1574,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "CWStarRatingViewDemo/CWStarRateView.h",
    "chars": 746,
    "preview": "//\n//  CWStarRateView.h\n//  StarRateDemo\n//\n//  Created by WANGCHAO on 14/11/4.\n//  Copyright (c) 2014年 wangchao. All ri"
  },
  {
    "path": "CWStarRatingViewDemo/CWStarRateView.m",
    "chars": 3953,
    "preview": "//\n//  CWStarRateView.m\n//  StarRateDemo\n//\n//  Created by WANGCHAO on 14/11/4.\n//  Copyright (c) 2014年 wangchao. All ri"
  },
  {
    "path": "CWStarRatingViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 585,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\""
  },
  {
    "path": "CWStarRatingViewDemo/Info.plist",
    "chars": 1217,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "CWStarRatingViewDemo/ViewController.h",
    "chars": 225,
    "preview": "//\n//  ViewController.h\n//  CWStarRatingViewDemo\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c) 2014年 wangchao"
  },
  {
    "path": "CWStarRatingViewDemo/ViewController.m",
    "chars": 702,
    "preview": "//\n//  ViewController.m\n//  CWStarRatingViewDemo\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c) 2014年 wangchao"
  },
  {
    "path": "CWStarRatingViewDemo/main.m",
    "chars": 344,
    "preview": "//\n//  main.m\n//  CWStarRatingViewDemo\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c) 2014年 wangchao. All righ"
  },
  {
    "path": "CWStarRatingViewDemo.xcodeproj/project.pbxproj",
    "chars": 18283,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "CWStarRatingViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "chars": 165,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:CWStarRatingVie"
  },
  {
    "path": "CWStarRatingViewDemo.xcodeproj/xcuserdata/wangchao.xcuserdatad/xcschemes/CWStarRatingViewDemo.xcscheme",
    "chars": 4384,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0610\"\n   version = \"1.3\">\n   <BuildAction\n      "
  },
  {
    "path": "CWStarRatingViewDemo.xcodeproj/xcuserdata/wangchao.xcuserdatad/xcschemes/xcschememanagement.plist",
    "chars": 582,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "CWStarRatingViewDemoTests/CWStarRatingViewDemoTests.m",
    "chars": 908,
    "preview": "//\n//  CWStarRatingViewDemoTests.m\n//  CWStarRatingViewDemoTests\n//\n//  Created by WANGCHAO on 14/11/8.\n//  Copyright (c"
  },
  {
    "path": "CWStarRatingViewDemoTests/Info.plist",
    "chars": 745,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "README.md",
    "chars": 136,
    "preview": "StarRatingView\n==============\n\n星级评分,支持显示部分星星,支持动画\n![image](https://github.com/wangchaoIOS/StarRatingView/blob/master/Scr"
  }
]

About this extraction

This page contains the full source code of the wangchaoIOS/StarRatingView GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 18 files (39.6 KB), approximately 12.9k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!