-
Notifications
You must be signed in to change notification settings - Fork 112
/
SquareAndPieceCornerRadiusVC.m
65 lines (54 loc) · 1.98 KB
/
SquareAndPieceCornerRadiusVC.m
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// SquareAndPieceCornerRadiusVC.m
// VHBoomMenuButton
//
// Created by viktorhuang on 2017/4/14.
// Copyright © 2017年 Nightonke. All rights reserved.
//
#import "SquareAndPieceCornerRadiusVC.h"
#import "BuilderManager.h"
#import <BoomMenuButton/BoomMenuButton.h>
@interface SquareAndPieceCornerRadiusVC ()
@property (weak, nonatomic) IBOutlet VHBoomMenuButton *bmb1;
@property (weak, nonatomic) IBOutlet VHBoomMenuButton *bmb2;
@property (weak, nonatomic) IBOutlet VHBoomMenuButton *bmb3;
@property (weak, nonatomic) IBOutlet VHBoomMenuButton *bmb4;
@end
@implementation SquareAndPieceCornerRadiusVC
- (void)viewDidLoad
{
[super viewDidLoad];
self.bmb1.buttonEnum = VHButtonSimpleCircle;
self.bmb1.piecePlaceEnum = VHPiecePlaceDOT_9_1;
self.bmb1.buttonPlaceEnum = VHButtonPlaceSC_9_1;
self.bmb1.pieceCornerRadius = 1;
for (int i = 0; i < self.bmb1.pieceNumber; i++)
{
[self.bmb1 addBuilder:[BuilderManager squareSimpleCircleButtonBuilder]];
}
self.bmb2.buttonEnum = VHButtonTextInsideCircle;
self.bmb2.piecePlaceEnum = VHPiecePlaceDOT_9_1;
self.bmb2.buttonPlaceEnum = VHButtonPlaceSC_9_1;
self.bmb2.pieceCornerRadius = 2;
for (int i = 0; i < self.bmb2.pieceNumber; i++)
{
[self.bmb2 addBuilder:[BuilderManager squareTextInsideCircleButtonBuilder]];
}
self.bmb3.buttonEnum = VHButtonTextOutsideCircle;
self.bmb3.piecePlaceEnum = VHPiecePlaceDOT_9_1;
self.bmb3.buttonPlaceEnum = VHButtonPlaceSC_9_1;
self.bmb3.pieceCornerRadius = 0;
for (int i = 0; i < self.bmb3.pieceNumber; i++)
{
[self.bmb3 addBuilder:[BuilderManager squareTextOutsideCircleButtonBuilder]];
}
self.bmb4.buttonEnum = VHButtonHam;
self.bmb4.piecePlaceEnum = VHPiecePlaceHAM_4;
self.bmb4.buttonPlaceEnum = VHButtonPlaceHAM_4;
self.bmb4.pieceCornerRadius = 1.5;
for (int i = 0; i < self.bmb4.pieceNumber; i++)
{
[self.bmb4 addBuilder:[BuilderManager hamButtonBuilder]];
}
}
@end