九宫格计算

mport "Vie*

wController.h"~~*~~** @interface ViewController () @property (weak, nonatomic) IBOutlet UILabellabel;

@end

@implementation ViewController

(void)viewDidLoad {

}

(IBAction)btnClick {

UISwitch *swh=[[UISwitch alloc]init];

UIStepper *sp=[[UIStepper alloc]init];

[self.view addSubview:sp];

[self.view addSubview:swh];

UISlider *sl=[[UISlider alloc]init];

[self.view insertSubview:sl aboveSubview:swh];

}

@end

你可能感兴趣的:(九宫格计算)