一、SGI STL配置器简介
SGI STL的配置器与众不同,它与标准规范不同。如果要在程序中明确使用SGI配置器,那么应该这样写:
[cpp]
view plaincopyprint?
vectorint,std::alloc> iv;
他的名字是alloc,而且不接受任何参数。标准配置器的名字是allocator,而且可以接受参数。
SGI S...
分类:
其他好文 时间:
2014-08-26 11:49:26
阅读次数:
243
UIView *view1=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view1.backgroundColor=[UIColor yellowColor]; view1.tag=1; ...
分类:
移动开发 时间:
2014-08-26 01:42:45
阅读次数:
223
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
#pragma mark - actionSheet- (void)shareOrder:(NSDictionary *)product{ UIActionSheet *as = [[UIActionSheet alloc] initWithTitle:VIMILocalizedString(@"....
分类:
其他好文 时间:
2014-08-24 14:06:22
阅读次数:
225
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没有响应
(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
[self.navigationController.navigationBar setBackgroundImage:imag forBarMetrics:UIBarMetricsDefault];
//button 定义你要的背景 文字 或 事件
UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc]...
分类:
其他好文 时间:
2014-08-22 17:57:29
阅读次数:
214
- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { _scrollView = [[UIScrollView alloc] initWith...
分类:
其他好文 时间:
2014-08-22 17:45:09
阅读次数:
229
- (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
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