objective-c - ioscrash 追查
PHP中文网
PHP中文网 2017-05-02 09:30:32
0
1
383

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)];
PHP中文网
PHP中文网

认证高级PHP讲师

全員に返信(1)
巴扎黑

attrStr.length

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!