说明文字的位置调整

This commit is contained in:
祝发冬
2022-09-23 15:38:36 +08:00
parent 30a4fdaeca
commit a0fff8e375
2 changed files with 5 additions and 5 deletions
@@ -195,7 +195,7 @@ static NSString *cycleTimerflag = @"CycleTimerCell";
} }
CGSize size= [label.text boundingRectWithSize:CGSizeMake(300, MAXFLOAT) options:(NSStringDrawingUsesFontLeading | NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName: label.font} context:NULL].size; CGSize size= [label.text boundingRectWithSize:CGSizeMake(300, MAXFLOAT) options:(NSStringDrawingUsesFontLeading | NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName: label.font} context:NULL].size;
label.frame=CGRectMake((kScreenWidth-size.width)/2.0, 300, size.width, size.height); label.frame=CGRectMake((kScreenWidth-size.width)/2.0, kScreenHeight-NavigationBarHeight-size.height-88, size.width, size.height);
[self.view addSubview:label]; [self.view addSubview:label];
} }
} }
@@ -52,7 +52,7 @@
//}; //};
NS_ENUM(NSInteger,indexViewState){ typedef NS_ENUM(NSInteger,IndexViewState){
//右上角编辑按钮的两种状态; //右上角编辑按钮的两种状态;
//正常的状态,按钮显示“编辑”; //正常的状态,按钮显示“编辑”;
@@ -62,7 +62,7 @@ NS_ENUM(NSInteger,indexViewState){
}; };
NS_ENUM(NSInteger,deviceType){ typedef NS_ENUM(NSInteger,DeviceType){
FishTank, FishTank,
@@ -77,8 +77,8 @@ NS_ENUM(NSInteger,deviceType){
@property (nonatomic,strong) UICollectionViewFlowLayout *flowLayout; @property (nonatomic,strong) UICollectionViewFlowLayout *flowLayout;
//@property (nonatomic,strong) enum CellState; //@property (nonatomic,strong) enum CellState;
@property (nonatomic,strong) enum indexViewState; @property (nonatomic,assign) IndexViewState indexViewState;
@property (nonatomic,strong) enum deviceType; @property (nonatomic,assign) DeviceType deviceType;
//下面数组用来存放头部标题; //下面数组用来存放头部标题;
@property(strong,nonatomic) NSMutableArray *headerArray; @property(strong,nonatomic) NSMutableArray *headerArray;