TuSDKRatioType Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKRatioType.h |
+ lsqTuSDKRatioDefaultTypes
比例类型默认5列表
+ (NSArray *)lsqTuSDKRatioDefaultTypes
Declared In
TuSDKRatioType.h
+ ratio:
获取比例
+ (float)ratio:(lsqRatioType)ratioType
Parameters
ratioType |
比例类型 lsqRatioType |
---|
Return Value
ratioType
Declared In
TuSDKRatioType.h
+ radioType:
通过比例获取相近比例类型
+ (lsqRatioType)radioType:(float)ratio
Return Value
ratio
Discussion
@param ratio
Declared In
TuSDKRatioType.h
+ validRatioTypes:
检测列表中的比例数据是否合法
+ (NSArray<NSNumber*> *)validRatioTypes:(NSArray<NSNumber*> *)types
Return Value
types
Discussion
@param types
Declared In
TuSDKRatioType.h
+ firstRatioType:
获取第一个比例类型
+ (lsqRatioType)firstRatioType:(lsqRatioType)ratioType
Return Value
ratioType
Discussion
@param firstRatioType
Declared In
TuSDKRatioType.h
+ firstRatio:
获取第一个比例
+ (float)firstRatio:(lsqRatioType)ratioType
Return Value
ratioType
Discussion
@param ratioType
Declared In
TuSDKRatioType.h
+ ratioCount:
获取比例总数
+ (NSInteger)ratioCount:(lsqRatioType)ratioType
Return Value
ratioType
Discussion
@param ratioType
Declared In
TuSDKRatioType.h
+ ratioTypes:
获取比例类型列表
+ (NSArray *)ratioTypes:(lsqRatioType)ratioType
Parameters
ratioType |
比例类型 |
---|
Return Value
ratioTypes 比例类型列表
Declared In
TuSDKRatioType.h
+ nextRatioType:currentType:
下一个比例类型
+ (lsqRatioType)nextRatioType:(lsqRatioType)ratioType currentType:(lsqRatioType)currentType
Parameters
ratioType |
比例类型集合 |
---|---|
currentType |
当前比例类型 |
Return Value
currentType
Declared In
TuSDKRatioType.h
+ nextRatioType:currentType:ignoreType:
下一个比例类型
+ (lsqRatioType)nextRatioType:(lsqRatioType)ratioType currentType:(lsqRatioType)currentType ignoreType:(lsqRatioType)ignoreType
Parameters
ratioType |
比例类型集合 |
---|---|
currentType |
当前比例类型 |
ignoreType |
需要忽略的比例类型 |
Return Value
nextType
Declared In
TuSDKRatioType.h
+ componentTypeWithRatioType:
获取比例动作类型
+ (NSInteger)componentTypeWithRatioType:(lsqRatioType)ratioType
Parameters
ratioType |
比例类型 |
---|
Return Value
ratioType 比例动作类型
Declared In
TuSDKRatioType.h