├── PrintScreen.gif
├── FBCScoreStartDemo
├── FBCScoreStartDemo.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── yunyitian.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ ├── xcuserdata
│ │ └── yunyitian.xcuserdatad
│ │ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── FBCScoreStartDemo.xcscheme
│ └── project.pbxproj
├── FBCScoreStartDemo
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ ├── AppDelegate.m
│ └── ViewController.m
├── FBCScoreStartDemoTests
│ ├── Info.plist
│ └── FBCScoreStartDemoTests.m
└── FBCScoreStartDemoUITests
│ ├── Info.plist
│ └── FBCScoreStartDemoUITests.m
├── README.md
├── FBCScoreStar
├── FBCScoreStar.h
└── FBCScoreStar.m
└── LICENSE
/PrintScreen.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SYFH/FBCScoreStar/HEAD/PrintScreen.gif
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/project.xcworkspace/xcuserdata/yunyitian.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SYFH/FBCScoreStar/HEAD/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/project.xcworkspace/xcuserdata/yunyitian.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // FBCScoreStartDemo
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // FBCScoreStartDemo
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // FBCScoreStartDemo
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ### FBCScoreStar
2 | 以星星的样式显示分数
3 |
4 | ### 截图
5 | 
6 |
7 | ### 使用方法
8 | ```
9 | ScoreStart *star = [[ScoreStart alloc] initWithFrame:CGRectMake(10, 100, 250, 50)];
10 | star.starBGColor = [UIColor redColor];//星星的背景颜色
11 | star.startColor = [UIColor orangeColor];
12 | star.score = 3;
13 | [self.view addSubview:star];
14 | ```
15 |
16 | ### 注意
17 | 1. 本视图一颗星星代表2分
18 | 2. 在使用时, 视图的宽必须大于高度, 若不符合标准则Crash!
19 | 3. 如果在使用中遇到问题与BUG, 请提交issue
20 | 4. 感谢各位的使用, 如果用的称心, 可以star
21 |
22 | ### License
23 | All source code is licensed under the [MIT License](https://github.com/SYFH/FBCScoreStar/blob/master/LICENSE).
24 |
--------------------------------------------------------------------------------
/FBCScoreStar/FBCScoreStar.h:
--------------------------------------------------------------------------------
1 | //
2 | // ScoreStart.h
3 | // 评分视图
4 | //
5 | // Created by 云翼天 on 16/5/10.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FBCScoreStar : UIView
12 |
13 | /*!
14 | @author SYFH
15 |
16 | @brief 星星的背景颜色, 有默认值
17 | 默认值为: [UIColor colorWithWhite:0.85 alpha:1]
18 | */
19 | @property (nonatomic, strong) UIColor *starBGColor;
20 |
21 | /*!
22 | @author SYFH
23 |
24 | @brief 星星的颜色, 有默认值
25 | 默认值为: [UIColor orangeColor]
26 | */
27 | @property (nonatomic, strong) UIColor *starColor;
28 |
29 | /*!
30 | @author SYFH
31 |
32 | @brief 分数, 最小为0, 最大为星星的个数的两倍
33 | eg. 5颗星星的最高分数为 5 * 2 = 10
34 | */
35 | @property (nonatomic, assign) CGFloat score;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemoUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/xcuserdata/yunyitian.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | FBCScoreStartDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 0B5D422F1CE307E700AED88B
16 |
17 | primary
18 |
19 |
20 | 0B5D42481CE307E700AED88B
21 |
22 | primary
23 |
24 |
25 | 0B5D42531CE307E700AED88B
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemoTests/FBCScoreStartDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // FBCScoreStartDemoTests.m
3 | // FBCScoreStartDemoTests
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FBCScoreStartDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation FBCScoreStartDemoTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 SYFH
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemoUITests/FBCScoreStartDemoUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // FBCScoreStartDemoUITests.m
3 | // FBCScoreStartDemoUITests
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FBCScoreStartDemoUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation FBCScoreStartDemoUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // FBCScoreStartDemo
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // 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.
25 | // 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.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // 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.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // 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.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // 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.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // FBCScoreStartDemo
4 | //
5 | // Created by 云翼天 on 16/5/11.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "FBCScoreStar.h"
11 |
12 | @interface ViewController ()
13 |
14 | @property (nonatomic, strong) NSMutableArray *starArr;
15 | @property (nonatomic, strong) NSMutableArray *scoreArr;
16 |
17 | @end
18 |
19 | @implementation ViewController
20 |
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 | // Do any additional setup after loading the view, typically from a nib.
24 |
25 | self.starArr = [NSMutableArray arrayWithCapacity:5];
26 | self.scoreArr = [NSMutableArray arrayWithCapacity:5];
27 |
28 | CGFloat y = 80;
29 | for (int i = 0; i < 5; i ++) {
30 |
31 | FBCScoreStar *star = [[FBCScoreStar alloc] initWithFrame:CGRectMake(10, i * y + 50, 50 * (i + 1), 50)];
32 | star.starBGColor = [UIColor colorWithWhite:0.85 alpha:1];
33 | star.starColor = [UIColor orangeColor];
34 | star.score = 1;
35 | [self.view addSubview:star];
36 | [self.starArr addObject:star];
37 |
38 | UILabel *score = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(star.frame) + 10, i * y + 65, 80, 20)];
39 | score.text = [NSString stringWithFormat:@"%.2f", star.score];
40 | score.textColor = [UIColor blackColor];
41 | [self.view addSubview:score];
42 | [self.scoreArr addObject:score];
43 | }
44 | }
45 |
46 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
47 |
48 | for (int i = 0; i < 5; i ++) {
49 |
50 | FBCScoreStar *star = self.starArr[i];
51 | UILabel *scoreLB = self.scoreArr[i];
52 |
53 | u_int32_t max = star.frame.size.width / star.frame.size.height * 200;
54 | CGFloat score = arc4random_uniform(max) * 0.01;
55 | star.score = score;
56 | scoreLB.text = [NSString stringWithFormat:@"%.2f", score];
57 | }
58 | }
59 |
60 | - (void)didReceiveMemoryWarning {
61 | [super didReceiveMemoryWarning];
62 | // Dispose of any resources that can be recreated.
63 | }
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/FBCScoreStar/FBCScoreStar.m:
--------------------------------------------------------------------------------
1 | //
2 | // ScoreStart.m
3 | // 评分视图
4 | //
5 | // Created by 云翼天 on 16/5/10.
6 | // Copyright © 2016年 云翼天. All rights reserved.
7 | //
8 |
9 | #import "FBCScoreStar.h"
10 |
11 | @interface FBCScoreStar ()
12 |
13 | @property (nonatomic, weak) CAShapeLayer *backgroudLayer;
14 |
15 | @end
16 |
17 | @implementation FBCScoreStar
18 |
19 | - (instancetype)initWithFrame:(CGRect)frame
20 | {
21 | self = [super initWithFrame:frame];
22 | if (self) {
23 | [self drawStarWithRect:frame];
24 | }
25 | return self;
26 | }
27 |
28 | - (void)awakeFromNib {
29 | [self drawStarWithRect:self.frame];
30 | }
31 |
32 | - (void)drawStarWithRect:(CGRect)frame {
33 |
34 | //使用时, 视图的宽度必须大于高度
35 | NSAssert(!(frame.size.width < frame.size.height), @"视图的宽度小于高度!");
36 |
37 | self.backgroundColor = [UIColor colorWithWhite:0.85 alpha:1];
38 | NSInteger num = frame.size.width / frame.size.height;//个数
39 |
40 | //进度
41 | UIBezierPath *backgroudPath = [UIBezierPath bezierPath];
42 | [backgroudPath moveToPoint:CGPointMake(0, frame.size.height * 0.5)];
43 | [backgroudPath addLineToPoint:CGPointMake(frame.size.width, frame.size.height * 0.5)];
44 | CAShapeLayer *backgroudLayer = [CAShapeLayer layer];
45 | backgroudLayer.path = backgroudPath.CGPath;
46 | backgroudLayer.lineWidth = frame.size.height;
47 | backgroudLayer.strokeColor = [UIColor orangeColor].CGColor;
48 | backgroudLayer.fillColor = [UIColor orangeColor].CGColor;
49 | [self.layer addSublayer:backgroudLayer];
50 | self.backgroudLayer = backgroudLayer;
51 |
52 | //画图
53 | UIBezierPath *star = [[UIBezierPath alloc] init];
54 | for (int i = 1; i < num * 2; i ++) {
55 | if (i % 2 != 0) {
56 | CGFloat startX = frame.size.width / (frame.size.width / frame.size.height) * i;
57 | CGPoint center = CGPointMake(startX * 0.5, frame.size.height * 0.5);
58 | CGFloat radius = frame.size.height * 0.5;
59 | CGFloat angle = 4 * M_PI / 5;
60 |
61 | //画五角星
62 | [star moveToPoint:CGPointMake(startX * 0.5, 0)];
63 | for (int i = 0; i < 5; i ++) {
64 | CGFloat x = center.x - sinf((i + 1) * angle) * radius;
65 | CGFloat y = center.y - cosf((i + 1) * angle) * radius;
66 | [star addLineToPoint:CGPointMake(x, y)];
67 | }
68 | [star addLineToPoint:CGPointMake(startX * 0.5, 0)];
69 | }
70 | }
71 |
72 | //遮罩
73 | CAShapeLayer *starLayer = [CAShapeLayer layer];
74 | starLayer.path = star.CGPath;
75 | self.layer.mask = starLayer;
76 | }
77 |
78 | - (void)setStarBGColor:(UIColor *)starBGColor {
79 | _starBGColor = starBGColor;
80 | self.backgroundColor = starBGColor;
81 | }
82 |
83 | - (void)setStarColor:(UIColor *)startColor {
84 | _starColor = startColor;
85 | self.backgroudLayer.strokeColor = startColor.CGColor;
86 | self.backgroudLayer.fillColor = startColor.CGColor;
87 | }
88 |
89 | - (void)setScore:(CGFloat)score {
90 | NSInteger num = self.frame.size.width / self.frame.size.height;
91 | if (score > num * 2) {//设置上限
92 | score = num * 2;
93 | }
94 | _score = score;
95 | self.backgroudLayer.strokeEnd = score / (num * 2);
96 | }
97 |
98 | @end
99 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/xcuserdata/yunyitian.xcuserdatad/xcschemes/FBCScoreStartDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/FBCScoreStartDemo/FBCScoreStartDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0B5D42351CE307E700AED88B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D42341CE307E700AED88B /* main.m */; };
11 | 0B5D42381CE307E700AED88B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D42371CE307E700AED88B /* AppDelegate.m */; };
12 | 0B5D423B1CE307E700AED88B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D423A1CE307E700AED88B /* ViewController.m */; };
13 | 0B5D423E1CE307E700AED88B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0B5D423C1CE307E700AED88B /* Main.storyboard */; };
14 | 0B5D42401CE307E700AED88B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0B5D423F1CE307E700AED88B /* Assets.xcassets */; };
15 | 0B5D42431CE307E700AED88B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0B5D42411CE307E700AED88B /* LaunchScreen.storyboard */; };
16 | 0B5D424E1CE307E700AED88B /* FBCScoreStartDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D424D1CE307E700AED88B /* FBCScoreStartDemoTests.m */; };
17 | 0B5D42591CE307E700AED88B /* FBCScoreStartDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D42581CE307E700AED88B /* FBCScoreStartDemoUITests.m */; };
18 | 0B5D426C1CE3163600AED88B /* FBCScoreStar.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5D426B1CE3163600AED88B /* FBCScoreStar.m */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 0B5D424A1CE307E700AED88B /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 0B5D42281CE307E700AED88B /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 0B5D422F1CE307E700AED88B;
27 | remoteInfo = FBCScoreStartDemo;
28 | };
29 | 0B5D42551CE307E700AED88B /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 0B5D42281CE307E700AED88B /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 0B5D422F1CE307E700AED88B;
34 | remoteInfo = FBCScoreStartDemo;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 0B5D42301CE307E700AED88B /* FBCScoreStartDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FBCScoreStartDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 0B5D42341CE307E700AED88B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
41 | 0B5D42361CE307E700AED88B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
42 | 0B5D42371CE307E700AED88B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
43 | 0B5D42391CE307E700AED88B /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
44 | 0B5D423A1CE307E700AED88B /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
45 | 0B5D423D1CE307E700AED88B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 0B5D423F1CE307E700AED88B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 0B5D42421CE307E700AED88B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 0B5D42441CE307E700AED88B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | 0B5D42491CE307E700AED88B /* FBCScoreStartDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FBCScoreStartDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 0B5D424D1CE307E700AED88B /* FBCScoreStartDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBCScoreStartDemoTests.m; sourceTree = ""; };
51 | 0B5D424F1CE307E700AED88B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | 0B5D42541CE307E700AED88B /* FBCScoreStartDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FBCScoreStartDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 0B5D42581CE307E700AED88B /* FBCScoreStartDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBCScoreStartDemoUITests.m; sourceTree = ""; };
54 | 0B5D425A1CE307E700AED88B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
55 | 0B5D426A1CE3163600AED88B /* FBCScoreStar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FBCScoreStar.h; path = ../FBCScoreStar/FBCScoreStar.h; sourceTree = ""; };
56 | 0B5D426B1CE3163600AED88B /* FBCScoreStar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FBCScoreStar.m; path = ../FBCScoreStar/FBCScoreStar.m; sourceTree = ""; };
57 | /* End PBXFileReference section */
58 |
59 | /* Begin PBXFrameworksBuildPhase section */
60 | 0B5D422D1CE307E700AED88B /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | 0B5D42461CE307E700AED88B /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | 0B5D42511CE307E700AED88B /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | );
79 | runOnlyForDeploymentPostprocessing = 0;
80 | };
81 | /* End PBXFrameworksBuildPhase section */
82 |
83 | /* Begin PBXGroup section */
84 | 0B5D42271CE307E700AED88B = {
85 | isa = PBXGroup;
86 | children = (
87 | 0B5D42321CE307E700AED88B /* FBCScoreStartDemo */,
88 | 0B5D424C1CE307E700AED88B /* FBCScoreStartDemoTests */,
89 | 0B5D42571CE307E700AED88B /* FBCScoreStartDemoUITests */,
90 | 0B5D42311CE307E700AED88B /* Products */,
91 | );
92 | sourceTree = "";
93 | };
94 | 0B5D42311CE307E700AED88B /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 0B5D42301CE307E700AED88B /* FBCScoreStartDemo.app */,
98 | 0B5D42491CE307E700AED88B /* FBCScoreStartDemoTests.xctest */,
99 | 0B5D42541CE307E700AED88B /* FBCScoreStartDemoUITests.xctest */,
100 | );
101 | name = Products;
102 | sourceTree = "";
103 | };
104 | 0B5D42321CE307E700AED88B /* FBCScoreStartDemo */ = {
105 | isa = PBXGroup;
106 | children = (
107 | 0B5D42661CE3080800AED88B /* FBCScoreStar */,
108 | 0B5D42361CE307E700AED88B /* AppDelegate.h */,
109 | 0B5D42371CE307E700AED88B /* AppDelegate.m */,
110 | 0B5D42391CE307E700AED88B /* ViewController.h */,
111 | 0B5D423A1CE307E700AED88B /* ViewController.m */,
112 | 0B5D423C1CE307E700AED88B /* Main.storyboard */,
113 | 0B5D423F1CE307E700AED88B /* Assets.xcassets */,
114 | 0B5D42411CE307E700AED88B /* LaunchScreen.storyboard */,
115 | 0B5D42441CE307E700AED88B /* Info.plist */,
116 | 0B5D42331CE307E700AED88B /* Supporting Files */,
117 | );
118 | path = FBCScoreStartDemo;
119 | sourceTree = "";
120 | };
121 | 0B5D42331CE307E700AED88B /* Supporting Files */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 0B5D42341CE307E700AED88B /* main.m */,
125 | );
126 | name = "Supporting Files";
127 | sourceTree = "";
128 | };
129 | 0B5D424C1CE307E700AED88B /* FBCScoreStartDemoTests */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 0B5D424D1CE307E700AED88B /* FBCScoreStartDemoTests.m */,
133 | 0B5D424F1CE307E700AED88B /* Info.plist */,
134 | );
135 | path = FBCScoreStartDemoTests;
136 | sourceTree = "";
137 | };
138 | 0B5D42571CE307E700AED88B /* FBCScoreStartDemoUITests */ = {
139 | isa = PBXGroup;
140 | children = (
141 | 0B5D42581CE307E700AED88B /* FBCScoreStartDemoUITests.m */,
142 | 0B5D425A1CE307E700AED88B /* Info.plist */,
143 | );
144 | path = FBCScoreStartDemoUITests;
145 | sourceTree = "";
146 | };
147 | 0B5D42661CE3080800AED88B /* FBCScoreStar */ = {
148 | isa = PBXGroup;
149 | children = (
150 | 0B5D426A1CE3163600AED88B /* FBCScoreStar.h */,
151 | 0B5D426B1CE3163600AED88B /* FBCScoreStar.m */,
152 | );
153 | name = FBCScoreStar;
154 | path = ../../FBCScoreStart;
155 | sourceTree = "";
156 | };
157 | /* End PBXGroup section */
158 |
159 | /* Begin PBXNativeTarget section */
160 | 0B5D422F1CE307E700AED88B /* FBCScoreStartDemo */ = {
161 | isa = PBXNativeTarget;
162 | buildConfigurationList = 0B5D425D1CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemo" */;
163 | buildPhases = (
164 | 0B5D422C1CE307E700AED88B /* Sources */,
165 | 0B5D422D1CE307E700AED88B /* Frameworks */,
166 | 0B5D422E1CE307E700AED88B /* Resources */,
167 | );
168 | buildRules = (
169 | );
170 | dependencies = (
171 | );
172 | name = FBCScoreStartDemo;
173 | productName = FBCScoreStartDemo;
174 | productReference = 0B5D42301CE307E700AED88B /* FBCScoreStartDemo.app */;
175 | productType = "com.apple.product-type.application";
176 | };
177 | 0B5D42481CE307E700AED88B /* FBCScoreStartDemoTests */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 0B5D42601CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemoTests" */;
180 | buildPhases = (
181 | 0B5D42451CE307E700AED88B /* Sources */,
182 | 0B5D42461CE307E700AED88B /* Frameworks */,
183 | 0B5D42471CE307E700AED88B /* Resources */,
184 | );
185 | buildRules = (
186 | );
187 | dependencies = (
188 | 0B5D424B1CE307E700AED88B /* PBXTargetDependency */,
189 | );
190 | name = FBCScoreStartDemoTests;
191 | productName = FBCScoreStartDemoTests;
192 | productReference = 0B5D42491CE307E700AED88B /* FBCScoreStartDemoTests.xctest */;
193 | productType = "com.apple.product-type.bundle.unit-test";
194 | };
195 | 0B5D42531CE307E700AED88B /* FBCScoreStartDemoUITests */ = {
196 | isa = PBXNativeTarget;
197 | buildConfigurationList = 0B5D42631CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemoUITests" */;
198 | buildPhases = (
199 | 0B5D42501CE307E700AED88B /* Sources */,
200 | 0B5D42511CE307E700AED88B /* Frameworks */,
201 | 0B5D42521CE307E700AED88B /* Resources */,
202 | );
203 | buildRules = (
204 | );
205 | dependencies = (
206 | 0B5D42561CE307E700AED88B /* PBXTargetDependency */,
207 | );
208 | name = FBCScoreStartDemoUITests;
209 | productName = FBCScoreStartDemoUITests;
210 | productReference = 0B5D42541CE307E700AED88B /* FBCScoreStartDemoUITests.xctest */;
211 | productType = "com.apple.product-type.bundle.ui-testing";
212 | };
213 | /* End PBXNativeTarget section */
214 |
215 | /* Begin PBXProject section */
216 | 0B5D42281CE307E700AED88B /* Project object */ = {
217 | isa = PBXProject;
218 | attributes = {
219 | LastUpgradeCheck = 0730;
220 | ORGANIZATIONNAME = "云翼天";
221 | TargetAttributes = {
222 | 0B5D422F1CE307E700AED88B = {
223 | CreatedOnToolsVersion = 7.3;
224 | };
225 | 0B5D42481CE307E700AED88B = {
226 | CreatedOnToolsVersion = 7.3;
227 | TestTargetID = 0B5D422F1CE307E700AED88B;
228 | };
229 | 0B5D42531CE307E700AED88B = {
230 | CreatedOnToolsVersion = 7.3;
231 | TestTargetID = 0B5D422F1CE307E700AED88B;
232 | };
233 | };
234 | };
235 | buildConfigurationList = 0B5D422B1CE307E700AED88B /* Build configuration list for PBXProject "FBCScoreStartDemo" */;
236 | compatibilityVersion = "Xcode 3.2";
237 | developmentRegion = English;
238 | hasScannedForEncodings = 0;
239 | knownRegions = (
240 | en,
241 | Base,
242 | );
243 | mainGroup = 0B5D42271CE307E700AED88B;
244 | productRefGroup = 0B5D42311CE307E700AED88B /* Products */;
245 | projectDirPath = "";
246 | projectRoot = "";
247 | targets = (
248 | 0B5D422F1CE307E700AED88B /* FBCScoreStartDemo */,
249 | 0B5D42481CE307E700AED88B /* FBCScoreStartDemoTests */,
250 | 0B5D42531CE307E700AED88B /* FBCScoreStartDemoUITests */,
251 | );
252 | };
253 | /* End PBXProject section */
254 |
255 | /* Begin PBXResourcesBuildPhase section */
256 | 0B5D422E1CE307E700AED88B /* Resources */ = {
257 | isa = PBXResourcesBuildPhase;
258 | buildActionMask = 2147483647;
259 | files = (
260 | 0B5D42431CE307E700AED88B /* LaunchScreen.storyboard in Resources */,
261 | 0B5D42401CE307E700AED88B /* Assets.xcassets in Resources */,
262 | 0B5D423E1CE307E700AED88B /* Main.storyboard in Resources */,
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | };
266 | 0B5D42471CE307E700AED88B /* Resources */ = {
267 | isa = PBXResourcesBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | );
271 | runOnlyForDeploymentPostprocessing = 0;
272 | };
273 | 0B5D42521CE307E700AED88B /* Resources */ = {
274 | isa = PBXResourcesBuildPhase;
275 | buildActionMask = 2147483647;
276 | files = (
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXResourcesBuildPhase section */
281 |
282 | /* Begin PBXSourcesBuildPhase section */
283 | 0B5D422C1CE307E700AED88B /* Sources */ = {
284 | isa = PBXSourcesBuildPhase;
285 | buildActionMask = 2147483647;
286 | files = (
287 | 0B5D423B1CE307E700AED88B /* ViewController.m in Sources */,
288 | 0B5D426C1CE3163600AED88B /* FBCScoreStar.m in Sources */,
289 | 0B5D42381CE307E700AED88B /* AppDelegate.m in Sources */,
290 | 0B5D42351CE307E700AED88B /* main.m in Sources */,
291 | );
292 | runOnlyForDeploymentPostprocessing = 0;
293 | };
294 | 0B5D42451CE307E700AED88B /* Sources */ = {
295 | isa = PBXSourcesBuildPhase;
296 | buildActionMask = 2147483647;
297 | files = (
298 | 0B5D424E1CE307E700AED88B /* FBCScoreStartDemoTests.m in Sources */,
299 | );
300 | runOnlyForDeploymentPostprocessing = 0;
301 | };
302 | 0B5D42501CE307E700AED88B /* Sources */ = {
303 | isa = PBXSourcesBuildPhase;
304 | buildActionMask = 2147483647;
305 | files = (
306 | 0B5D42591CE307E700AED88B /* FBCScoreStartDemoUITests.m in Sources */,
307 | );
308 | runOnlyForDeploymentPostprocessing = 0;
309 | };
310 | /* End PBXSourcesBuildPhase section */
311 |
312 | /* Begin PBXTargetDependency section */
313 | 0B5D424B1CE307E700AED88B /* PBXTargetDependency */ = {
314 | isa = PBXTargetDependency;
315 | target = 0B5D422F1CE307E700AED88B /* FBCScoreStartDemo */;
316 | targetProxy = 0B5D424A1CE307E700AED88B /* PBXContainerItemProxy */;
317 | };
318 | 0B5D42561CE307E700AED88B /* PBXTargetDependency */ = {
319 | isa = PBXTargetDependency;
320 | target = 0B5D422F1CE307E700AED88B /* FBCScoreStartDemo */;
321 | targetProxy = 0B5D42551CE307E700AED88B /* PBXContainerItemProxy */;
322 | };
323 | /* End PBXTargetDependency section */
324 |
325 | /* Begin PBXVariantGroup section */
326 | 0B5D423C1CE307E700AED88B /* Main.storyboard */ = {
327 | isa = PBXVariantGroup;
328 | children = (
329 | 0B5D423D1CE307E700AED88B /* Base */,
330 | );
331 | name = Main.storyboard;
332 | sourceTree = "";
333 | };
334 | 0B5D42411CE307E700AED88B /* LaunchScreen.storyboard */ = {
335 | isa = PBXVariantGroup;
336 | children = (
337 | 0B5D42421CE307E700AED88B /* Base */,
338 | );
339 | name = LaunchScreen.storyboard;
340 | sourceTree = "";
341 | };
342 | /* End PBXVariantGroup section */
343 |
344 | /* Begin XCBuildConfiguration section */
345 | 0B5D425B1CE307E700AED88B /* Debug */ = {
346 | isa = XCBuildConfiguration;
347 | buildSettings = {
348 | ALWAYS_SEARCH_USER_PATHS = NO;
349 | CLANG_ANALYZER_NONNULL = YES;
350 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
351 | CLANG_CXX_LIBRARY = "libc++";
352 | CLANG_ENABLE_MODULES = YES;
353 | CLANG_ENABLE_OBJC_ARC = YES;
354 | CLANG_WARN_BOOL_CONVERSION = YES;
355 | CLANG_WARN_CONSTANT_CONVERSION = YES;
356 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
357 | CLANG_WARN_EMPTY_BODY = YES;
358 | CLANG_WARN_ENUM_CONVERSION = YES;
359 | CLANG_WARN_INT_CONVERSION = YES;
360 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
361 | CLANG_WARN_UNREACHABLE_CODE = YES;
362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
364 | COPY_PHASE_STRIP = NO;
365 | DEBUG_INFORMATION_FORMAT = dwarf;
366 | ENABLE_STRICT_OBJC_MSGSEND = YES;
367 | ENABLE_TESTABILITY = YES;
368 | GCC_C_LANGUAGE_STANDARD = gnu99;
369 | GCC_DYNAMIC_NO_PIC = NO;
370 | GCC_NO_COMMON_BLOCKS = YES;
371 | GCC_OPTIMIZATION_LEVEL = 0;
372 | GCC_PREPROCESSOR_DEFINITIONS = (
373 | "DEBUG=1",
374 | "$(inherited)",
375 | );
376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
378 | GCC_WARN_UNDECLARED_SELECTOR = YES;
379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
380 | GCC_WARN_UNUSED_FUNCTION = YES;
381 | GCC_WARN_UNUSED_VARIABLE = YES;
382 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
383 | MTL_ENABLE_DEBUG_INFO = YES;
384 | ONLY_ACTIVE_ARCH = YES;
385 | SDKROOT = iphoneos;
386 | };
387 | name = Debug;
388 | };
389 | 0B5D425C1CE307E700AED88B /* Release */ = {
390 | isa = XCBuildConfiguration;
391 | buildSettings = {
392 | ALWAYS_SEARCH_USER_PATHS = NO;
393 | CLANG_ANALYZER_NONNULL = YES;
394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
395 | CLANG_CXX_LIBRARY = "libc++";
396 | CLANG_ENABLE_MODULES = YES;
397 | CLANG_ENABLE_OBJC_ARC = YES;
398 | CLANG_WARN_BOOL_CONVERSION = YES;
399 | CLANG_WARN_CONSTANT_CONVERSION = YES;
400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
401 | CLANG_WARN_EMPTY_BODY = YES;
402 | CLANG_WARN_ENUM_CONVERSION = YES;
403 | CLANG_WARN_INT_CONVERSION = YES;
404 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
405 | CLANG_WARN_UNREACHABLE_CODE = YES;
406 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
407 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
408 | COPY_PHASE_STRIP = NO;
409 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
410 | ENABLE_NS_ASSERTIONS = NO;
411 | ENABLE_STRICT_OBJC_MSGSEND = YES;
412 | GCC_C_LANGUAGE_STANDARD = gnu99;
413 | GCC_NO_COMMON_BLOCKS = YES;
414 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
415 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
416 | GCC_WARN_UNDECLARED_SELECTOR = YES;
417 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
418 | GCC_WARN_UNUSED_FUNCTION = YES;
419 | GCC_WARN_UNUSED_VARIABLE = YES;
420 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
421 | MTL_ENABLE_DEBUG_INFO = NO;
422 | SDKROOT = iphoneos;
423 | VALIDATE_PRODUCT = YES;
424 | };
425 | name = Release;
426 | };
427 | 0B5D425E1CE307E700AED88B /* Debug */ = {
428 | isa = XCBuildConfiguration;
429 | buildSettings = {
430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
431 | INFOPLIST_FILE = FBCScoreStartDemo/Info.plist;
432 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
433 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
434 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemo;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | };
437 | name = Debug;
438 | };
439 | 0B5D425F1CE307E700AED88B /* Release */ = {
440 | isa = XCBuildConfiguration;
441 | buildSettings = {
442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
443 | INFOPLIST_FILE = FBCScoreStartDemo/Info.plist;
444 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
445 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
446 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemo;
447 | PRODUCT_NAME = "$(TARGET_NAME)";
448 | };
449 | name = Release;
450 | };
451 | 0B5D42611CE307E700AED88B /* Debug */ = {
452 | isa = XCBuildConfiguration;
453 | buildSettings = {
454 | BUNDLE_LOADER = "$(TEST_HOST)";
455 | INFOPLIST_FILE = FBCScoreStartDemoTests/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
457 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemoTests;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBCScoreStartDemo.app/FBCScoreStartDemo";
460 | };
461 | name = Debug;
462 | };
463 | 0B5D42621CE307E700AED88B /* Release */ = {
464 | isa = XCBuildConfiguration;
465 | buildSettings = {
466 | BUNDLE_LOADER = "$(TEST_HOST)";
467 | INFOPLIST_FILE = FBCScoreStartDemoTests/Info.plist;
468 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
469 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemoTests;
470 | PRODUCT_NAME = "$(TARGET_NAME)";
471 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBCScoreStartDemo.app/FBCScoreStartDemo";
472 | };
473 | name = Release;
474 | };
475 | 0B5D42641CE307E700AED88B /* Debug */ = {
476 | isa = XCBuildConfiguration;
477 | buildSettings = {
478 | INFOPLIST_FILE = FBCScoreStartDemoUITests/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
480 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemoUITests;
481 | PRODUCT_NAME = "$(TARGET_NAME)";
482 | TEST_TARGET_NAME = FBCScoreStartDemo;
483 | };
484 | name = Debug;
485 | };
486 | 0B5D42651CE307E700AED88B /* Release */ = {
487 | isa = XCBuildConfiguration;
488 | buildSettings = {
489 | INFOPLIST_FILE = FBCScoreStartDemoUITests/Info.plist;
490 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
491 | PRODUCT_BUNDLE_IDENTIFIER = com.test.FBCScoreStartDemoUITests;
492 | PRODUCT_NAME = "$(TARGET_NAME)";
493 | TEST_TARGET_NAME = FBCScoreStartDemo;
494 | };
495 | name = Release;
496 | };
497 | /* End XCBuildConfiguration section */
498 |
499 | /* Begin XCConfigurationList section */
500 | 0B5D422B1CE307E700AED88B /* Build configuration list for PBXProject "FBCScoreStartDemo" */ = {
501 | isa = XCConfigurationList;
502 | buildConfigurations = (
503 | 0B5D425B1CE307E700AED88B /* Debug */,
504 | 0B5D425C1CE307E700AED88B /* Release */,
505 | );
506 | defaultConfigurationIsVisible = 0;
507 | defaultConfigurationName = Release;
508 | };
509 | 0B5D425D1CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemo" */ = {
510 | isa = XCConfigurationList;
511 | buildConfigurations = (
512 | 0B5D425E1CE307E700AED88B /* Debug */,
513 | 0B5D425F1CE307E700AED88B /* Release */,
514 | );
515 | defaultConfigurationIsVisible = 0;
516 | defaultConfigurationName = Release;
517 | };
518 | 0B5D42601CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemoTests" */ = {
519 | isa = XCConfigurationList;
520 | buildConfigurations = (
521 | 0B5D42611CE307E700AED88B /* Debug */,
522 | 0B5D42621CE307E700AED88B /* Release */,
523 | );
524 | defaultConfigurationIsVisible = 0;
525 | defaultConfigurationName = Release;
526 | };
527 | 0B5D42631CE307E700AED88B /* Build configuration list for PBXNativeTarget "FBCScoreStartDemoUITests" */ = {
528 | isa = XCConfigurationList;
529 | buildConfigurations = (
530 | 0B5D42641CE307E700AED88B /* Debug */,
531 | 0B5D42651CE307E700AED88B /* Release */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | /* End XCConfigurationList section */
537 | };
538 | rootObject = 0B5D42281CE307E700AED88B /* Project object */;
539 | }
540 |
--------------------------------------------------------------------------------