|
@@ -44,11 +44,6 @@
|
|
|
[self configUI];
|
|
|
}
|
|
|
|
|
|
-- (void)viewWillAppear:(BOOL)animated {
|
|
|
- [super viewWillAppear:animated];
|
|
|
- [self setDefaultConfig];
|
|
|
-}
|
|
|
-
|
|
|
- (void)backAction {
|
|
|
[self.navigationController popViewControllerAnimated:YES];
|
|
|
}
|
|
@@ -65,6 +60,10 @@
|
|
|
[self changeRhythmDisplay];
|
|
|
}
|
|
|
|
|
|
+- (void)viewWillAppear:(BOOL)animated {
|
|
|
+ [super viewWillAppear:animated];
|
|
|
+ [self setDefaultConfig];
|
|
|
+}
|
|
|
|
|
|
- (void)configUI {
|
|
|
[self.scrollView removeFromSuperview];
|
|
@@ -87,7 +86,7 @@
|
|
|
// [self.view addSubview:self.dotView];
|
|
|
// [self.dotView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
// make.left.right.mas_equalTo(self.view);
|
|
|
-// make.top.mas_equalTo(self.navView.mas_bottom).offset(10);
|
|
|
+// make.top.mas_equalTo(self.navView.mas_bottom).offset(topSpace);
|
|
|
// make.height.mas_equalTo(44);
|
|
|
// }];
|
|
|
CGFloat topSpace = IS_IPAD ? 100 + 44 : 10 + 44;
|
|
@@ -129,6 +128,7 @@
|
|
|
self.beatNumber = beatNumber;
|
|
|
[self changeBeat];
|
|
|
self.functionView.beatLabel.text = [NSString stringWithFormat:@"%zd",beatNumber];
|
|
|
+ [self changeRhythmDisplay];
|
|
|
}];
|
|
|
}
|
|
|
|
|
@@ -234,6 +234,7 @@
|
|
|
- (void)changeRhythm {
|
|
|
self.functionView.rhythmType = self.rhythmType;
|
|
|
}
|
|
|
+
|
|
|
- (void)setSpeed:(int)speed {
|
|
|
_speed = speed;
|
|
|
[self stopBeat];
|