@implementation AppDelegate
- (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];
[self.window makeKeyAndVisible];
UILabel *welcomLb = [[UILabel alloc]initWithFrame:CGRectMake(80, 20, 160, 50)];
welcomLb.text = @"个人所得税计算";
welcomLb.textColor = [UIColor greenColor];
welcomLb.font =[UIFont boldSystemFontOfSize:22];
welcomLb.shadowColor = [UIColor purpleColor];
welcomLb.shadowOffset = CGSizeMake(2, 2);
welcomLb.textAlignment = NSTextAlignmentCenter;
[self.window addSubview:welcomLb];
//输入工资
UILabel *salaryLb = [[UILabel alloc]initWithFrame:CGRectMake(50, 70, 80, 40)];
salaryLb.text = @"工资:";
salaryLb.textAlignment = NSTextAlignmentLeft;
[self.window addSubview:salaryLb];
salaryTF = [[UITextField alloc]initWithFrame:CGRectMake(150, 70, 140, 40)];
salaryTF.borderStyle = UITextBorderStyleRoundedRect;
salaryTF.placeholder = @"请输入.......";
salaryTF.keyboardType = UIKeyboardTypeNumberPad;
[self.window addSubview:salaryTF];
//个人所得税
UILabel *taxOutLb = [[UILabel alloc]initWithFrame:CGRectMake(50, 110, 80, 40)];
taxOutLb.textAlignment = NSTextAlignmentLeft;
taxOutLb.text = @"应缴税:";
[self.window addSubview:taxOutLb];
taxOutTF = [[UITextField alloc]initWithFrame:CGRectMake(150, 110, 140, 40)];
taxOutTF.userInteractionEnabled = NO;
taxOutTF.borderStyle = UITextBorderStyleRoundedRect;
taxOutTF.placeholder = @"应缴税......";
[self.window addSubview:taxOutTF];