xcode 4, Thread 1:Program received signal:"EXC_BAD_ACCESS."
When i adde开发者_JAVA百科d the code(textField.text=preTotalNumber;) in the method(onButtonPressed),the failure appeared. Can anyone please help me?thk
preTotalNumber should be an NSString, and if not you should convert it to NSString. for instance if it's an integer you can use the following:
[NSString stringWithFormat:@"%d", preTotalNumber];
精彩评论