|
|
@@ -1197,7 +1197,9 @@ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
CGSize sizeval=rtlabel.optimumSize;
|
|
|
|
|
|
|
|
|
- CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+// CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+ CGSize sizekey = [RAUtils sizeWithFont:key font:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+
|
|
|
// CGSize sizeval = [val sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintval lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
float height = MAX(sizekey.height,sizeval.height);
|
|
|
height = MAX(height+LINE_WIDTH, DEF_CELL_HEIGHT);
|
|
|
@@ -1270,7 +1272,10 @@ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
CGSize sizeval=rtlabel.optimumSize;
|
|
|
|
|
|
|
|
|
- CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+// CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+
|
|
|
+ CGSize sizekey = [RAUtils sizeWithFont:key font:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+
|
|
|
// CGSize sizeval = [val sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintval lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
float height = MAX(sizekey.height,sizeval.height);
|
|
|
height = MAX(height+LINE_WIDTH, DEF_CELL_HEIGHT);
|
|
|
@@ -2290,7 +2295,9 @@ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
// rtlabel.lineSpacing = 20.0;
|
|
|
[rtlabel setText: val];
|
|
|
CGSize sizeval=rtlabel.optimumSize;
|
|
|
- CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+// CGSize sizekey = [key sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
+
|
|
|
+ CGSize sizekey = [RAUtils sizeWithFont:key font:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
|
|
|
|
|
|
float height = MAX(sizekey.height,sizeval.height);
|
|
|
height = MAX(height, DEF_CELL_HEIGHT-LINE_WIDTH);
|
|
|
@@ -2501,36 +2508,36 @@ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
groups.duration = 1.0f;
|
|
|
groups.removedOnCompletion=NO;
|
|
|
groups.fillMode=kCAFillModeForwards;
|
|
|
- groups.delegate = self;
|
|
|
+// groups.delegate = self;
|
|
|
[_layer addAnimation:groups forKey:@"group"];
|
|
|
}
|
|
|
|
|
|
--(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag
|
|
|
-{
|
|
|
- // [anim def];
|
|
|
- if (anim == [_layer animationForKey:@"group"]) {
|
|
|
- self.detailTable.userInteractionEnabled = YES;
|
|
|
- // _btn.enabled = YES;
|
|
|
- [_layer removeFromSuperlayer];
|
|
|
- _layer = nil;
|
|
|
-
|
|
|
-
|
|
|
-// _cnt++;
|
|
|
-// if (_cnt) {
|
|
|
-// _cntLabel.hidden = NO;
|
|
|
-// }
|
|
|
-// CATransition *animation = [CATransition animation];
|
|
|
-// animation.duration = 0.25f;
|
|
|
-// _cntLabel.text = [NSString stringWithFormat:@"%d",_cnt];
|
|
|
-// [_cntLabel.layer addAnimation:animation forKey:nil];
|
|
|
-// CABasicAnimation *shakeAnimation = [CABasicAnimation animationWithKeyPath:@"transform.translation.y"];
|
|
|
-// shakeAnimation.duration = 0.25f;
|
|
|
-// shakeAnimation.fromValue = [NSNumber numberWithFloat:-5];
|
|
|
-// shakeAnimation.toValue = [NSNumber numberWithFloat:5];
|
|
|
-// shakeAnimation.autoreverses = YES;
|
|
|
-// [_btn.layer addAnimation:shakeAnimation forKey:nil];
|
|
|
- }
|
|
|
-}
|
|
|
+//-(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag
|
|
|
+//{
|
|
|
+// // [anim def];
|
|
|
+// if (anim == [_layer animationForKey:@"group"]) {
|
|
|
+// self.detailTable.userInteractionEnabled = YES;
|
|
|
+// // _btn.enabled = YES;
|
|
|
+// [_layer removeFromSuperlayer];
|
|
|
+// _layer = nil;
|
|
|
+//
|
|
|
+//
|
|
|
+//// _cnt++;
|
|
|
+//// if (_cnt) {
|
|
|
+//// _cntLabel.hidden = NO;
|
|
|
+//// }
|
|
|
+//// CATransition *animation = [CATransition animation];
|
|
|
+//// animation.duration = 0.25f;
|
|
|
+//// _cntLabel.text = [NSString stringWithFormat:@"%d",_cnt];
|
|
|
+//// [_cntLabel.layer addAnimation:animation forKey:nil];
|
|
|
+//// CABasicAnimation *shakeAnimation = [CABasicAnimation animationWithKeyPath:@"transform.translation.y"];
|
|
|
+//// shakeAnimation.duration = 0.25f;
|
|
|
+//// shakeAnimation.fromValue = [NSNumber numberWithFloat:-5];
|
|
|
+//// shakeAnimation.toValue = [NSNumber numberWithFloat:5];
|
|
|
+//// shakeAnimation.autoreverses = YES;
|
|
|
+//// [_btn.layer addAnimation:shakeAnimation forKey:nil];
|
|
|
+// }
|
|
|
+//}
|
|
|
#pragma mark - hide section button clicked
|
|
|
- (void)RefreshSection:(UIButton *)sender {
|
|
|
|