佚名通过本文主要向大家介绍了dnf追查皇女的行踪,dnf追查皇女的行踪任,dnf追查凶手,dnf追查凶手是谁,追查皇女的行踪等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:dnf追查皇女的行踪 ioscrash 追查
描述:
解决方案1:
描述:
crash 信息
SEGV_ACCERR
cardloan -[HomeMoneyView refreshView] (HomeMoneyView.m:)
cardloan -[HomeMoneyView refreshView] (HomeMoneyView.m:89)
5 cardloan -[HomeMoneyTextFiedTablieViewCell initWithStyle:reuseIdentifier:] (HomeMoneyTextFiedTablieViewCell.m:61)
@try {
// 刷新每期费用
CGFloat monthMoney = [[MoneyLoan sharedInstance] getPeriodsFeeWithMoney:[_moneyTextField.text floatValue] periods:_periods];;
NSString *approvedAmountStr = [NSString stringWithFormat:@"%@元", [NSString moneyToStrings:monthMoney]];
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:approvedAmountStr];
[attrStr setAttributes:@{
NSFontAttributeName:kFont(15.)
}
range:NSMakeRange(attrStr.length - 3, 3)];
_monthMoneyLabel.attributedText = attrStr;
_circleLayer.progress = [_moneyTextField.text floatValue] / _moneyTextField.moneyRange.max;
} @catch (NSException *exception) {
} @finally {
}
89行是这句, 不知道为啥会崩溃
[attrStr setAttributes:@{
NSFontAttributeName:kFont(15.)
}
range:NSMakeRange(attrStr.length - 3, 3)];
解决方案1:
attrStr.length < 3