码迷,mamicode.com
首页 >  
搜索关键字:alloc    ( 3259个结果
IOS开发学习笔记(1)-----UILabel 详解
1. [代码][C/C++]代码 //创建uilabelUILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)];//设置背景色label1.backgroundColor = [UIColor gr....
分类:移动开发   时间:2014-07-07 18:50:59    阅读次数:212
在界面 上生成一个摄像头.
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.delegate = self; i...
分类:其他好文   时间:2014-07-02 22:03:44    阅读次数:220
UITapGestureRecognizer
//单指单击UITapGestureRecognizer *singleFingerOne = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleFingerE...
分类:其他好文   时间:2014-07-02 17:44:34    阅读次数:196
An A-Z Index of the Apple OS X command line
来源:http://ss64.com/osx/An A-Z Index of theApple OS Xcommand line alias Create an alias ? alloc List used and free memory apropos Search t...
分类:移动开发   时间:2014-07-01 17:46:48    阅读次数:384
ios如何在一个UIImageButton的里面加一些自定义的箭头
可以采用如下方法,写一个函数: -(UIImage*) getOneImageButtonWithArrow{ //tmpView做附控件 UIView *tmpView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 38.0f, 32.0f)]; tmpView.backgroundColor = [UIColo...
分类:移动开发   时间:2014-07-01 09:54:31    阅读次数:246
位置与地图(三)给地图添加覆盖层
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds]; self.mapView.mapType =...
分类:其他好文   时间:2014-07-01 06:17:34    阅读次数:758
给button添加长按手势并侦测到此button
1, 添加手势self.longPressRecognizer = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(handleLongPress:)];[btn addGestureRecogniz...
分类:其他好文   时间:2014-06-30 21:13:14    阅读次数:251
UISegmentedControl(转)
初始化UISegmentedControlNSArray *arr = [[NSArray alloc]initWithObjects:@"轻拍",@"长按",@"清扫",@"旋转",@"捏合",@"拖拽", nil];//先创建一个数组用于设置标题UISegmentedControl *segme...
分类:其他好文   时间:2014-06-30 13:27:13    阅读次数:187
在mac上配置push notification的问题
在代码的deletegater中写: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScre...
分类:其他好文   时间:2014-06-30 10:48:04    阅读次数:240
UISlider控件属性及方法(转)
初始化一个SliderUISlider *slider = [[UISlider alloc]initWithFrame:CGRectMake(0, 400,320 , 20)];访问UISlider的值 slider.value = 3;//设置slider的值float value = slid...
分类:其他好文   时间:2014-06-29 18:47:27    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!