我下載並手動將FlatUIKit中的類手動添加到我的Xcode項目中(因爲通過CocoaPods安裝它不會下載某些類,例如UITableViewCell+FlatUI
)......每當我嘗試調用其中一個從任何FlatUIKit類,應用程序崩潰的方法,這被顯示在Xcode中:當調用iOS上的FlatUIKit方法時,應用程序崩潰
登錄:
CoreFoundation`__CFTypeCollectionRetain:
0x33d5e260: push {r4, r7, lr}
0x33d5e262: mov r4, r1
0x33d5e264: add r7, sp, #4
0x33d5e266: cbnz r4, 0x33d5e274 ; __CFTypeCollectionRetain + 20
0x33d5e268: trap
0x33d5e26a: blx 0x33dc7a4c ; symbol stub for: -[NSOrderedSet intersectsSet:]
0x33d5e26e: movs r1, #9
0x33d5e270: blx 0x33dc7b1c ; symbol stub for: __61-[NSOrderedSet sortedArrayFromRange:options:usingComparator:]_block_invoke_0
0x33d5e274: mov r0, r4
0x33d5e276: pop.w {r4, r7, lr}
0x33d5e27a: b.w 0x33cc7d1c ; CFRetain
0x33d5e27e: nop
我猜這事做與ARC?我該如何解決這個問題?這裏給出的示例代碼EXC_BREAKPOINT
FUIButton *button = [FUIButton buttonWithType:UIButtonTypeCustom];
[button addTarget:self action:@selector(loginButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
[button setTitle:@"Iniciar Sesión" forState:UIControlStateNormal];
button.frame = CGRectMake(80, 210, 140, 40);
button.buttonColor = [UIColor turquoiseColor];
button.shadowColor = [UIColor greenSeaColor];
button.shadowHeight = 3.0f;
button.cornerRadius = 6.0f;
button.titleLabel.font = [UIFont boldFlatFontOfSize:16];
[button setTitleColor:[UIColor cloudsColor] forState:UIControlStateNormal];
[button setTitleColor:[UIColor cloudsColor] forState:UIControlStateHighlighted];
[[self ScrollView]addSubview:button];
NSLog(@"Oks");
該圖像不可用。也許你可以複製並粘貼崩潰日誌。 –
@verbumdei更新了問題。 –
你在項目中使用ARC嗎? –