码迷,mamicode.com
首页 >  
搜索关键字:alloc    ( 3259个结果
STL源码分析--空间配置器 第一级配置器
一、SGI STL配置器简介 SGI STL的配置器与众不同,它与标准规范不同。如果要在程序中明确使用SGI配置器,那么应该这样写: [cpp] view plaincopyprint? vectorint,std::alloc> iv;   他的名字是alloc,而且不接受任何参数。标准配置器的名字是allocator,而且可以接受参数。 SGI S...
分类:其他好文   时间:2014-08-26 11:49:26    阅读次数:243
UIview 学习与自定义--ios
UIView *view1=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view1.backgroundColor=[UIColor yellowColor]; view1.tag=1; ...
分类:移动开发   时间:2014-08-26 01:42:45    阅读次数:223
AFNetworking框架_上传文件或图片到服务器
AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request]; [op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"上传完成"); } failure:^(AFHTTPRequestOperation *operation, N...
分类:Web程序   时间:2014-08-25 13:28:24    阅读次数:240
UIActionSheet 传值
#pragma mark - actionSheet- (void)shareOrder:(NSDictionary *)product{ UIActionSheet *as = [[UIActionSheet alloc] initWithTitle:VIMILocalizedString(@"....
分类:其他好文   时间:2014-08-24 14:06:22    阅读次数:225
UITextField的总结
1.UITextField的初始化和设置 textField = [[UITextField alloc] initWithFrame:CGRectMake(120.0f, 80.0f, 150.0f, 30.0f)]; [textField setBorderStyle:UITextBorde.....
分类:其他好文   时间:2014-08-23 11:05:50    阅读次数:214
点击textField没有响应与在屏幕上未看到创建的视图问题(UI)
一.点击textField没有响应     (1)textField上面还有视图(如下)     UITextField *tf = [[UITextField alloc] initWithFrame:CGRectMake(50, 100, 220, 40)];     tf.backgroundColor = [UIColor yellowColor];     tf.borderSt...
分类:其他好文   时间:2014-08-23 08:50:00    阅读次数:149
navigationitem的背景图片和左边返回按钮 以及文字
[self.navigationController.navigationBar setBackgroundImage:imag forBarMetrics:UIBarMetricsDefault]; //button 定义你要的背景 文字 或 事件  UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc]...
分类:其他好文   时间:2014-08-22 17:57:29    阅读次数:214
photoWall自定义
- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { _scrollView = [[UIScrollView alloc] initWith...
分类:其他好文   时间:2014-08-22 17:45:09    阅读次数:229
ios 绘制曲线走势图
- (void)drawLine{ //view是曲线的背景view UIView *view = [[UIView alloc]initWithFrame:CGRectMake(10, 0, 300, 300)]; view.backgroundColor = [UIColor whiteColor]; [self.view addSubview:vie...
分类:移动开发   时间:2014-08-22 16:29:09    阅读次数:247
IOS中UITableview的两种Header view
UITableview中可以通过1 UITableView *_tableView;2 _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.fra...
分类:移动开发   时间:2014-08-22 16:11:18    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!