@interface JXGAppDelegate ()
{
UILabel *_label;
NSMutableString *_string;
CGFloat _firstNumber;
CGFloat _secondNumber;
CGFloat _tempNumber;
CGFloat _result;
}
@end
@implementation JXGAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
UIView *containterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
containterView.backgroundColor = [UIColor grayColor];
[self.window addSubview:containterView];
[containterView release];
// 创建显示框
_label = [[UILabel alloc] initWithFrame:CGRectMake(10, 50, 300, 80)];
_label.backgroundColor = [UIColor whiteColor];
_label.text = @"0";
_label.layer.cornerRadius = 7;
_label.layer.masksToBounds = YES;
_label.textAlignment = NSTextAlignmentRight;
_label.font = [UIFont systemFontOfSize:30];
[containterView addSubview:_label];
[_label release];
// 创建9个数字
NSArray *numberArr = @[@"7", @"8", @"9", @"4", @"5", @"6", @"1", @"2", @"3", @"0", @".", <