说明文字的位置调整

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

View File

@ -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];
} }
} }

View File

@ -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;