码迷,mamicode.com
首页 >  
搜索关键字:self this    ( 14215个结果
iOS自定义NavigationBar
if (IS_IOS7()) { // NavigationBar 颜色 [[UINavigationBar appearance] setBarTintColor:HexColor(0xffffff)]; } else { self.nav...
分类:移动开发   时间:2014-06-06 15:48:39    阅读次数:283
c/c++栏目中类和对象-4的python实现
# -*- coding: utf-8 -*-"""Created on Wed Jun 04 01:21:31 2014@author: Administrator"""class Analysis: def processExamResults(self): passes =...
分类:编程语言   时间:2014-06-06 13:03:57    阅读次数:354
UIwebview 背景色调整
自定义webview背景色 重点是把webview弄成透明的 然后把self.view的背景调色即可UIWebview 背景透明处理让 UIWebView 背景透明需要以下设置web_about.backgroundColor = [UIColor clearColor];web_about.opa...
分类:Web程序   时间:2014-06-04 17:23:59    阅读次数:291
Popovercontroller中显示tableView的cell个数
在Popovercontroller中显示tableView,用多少cell,就显示多少cell,去掉多余空白的cell在控制器中设置- (void)viewDidLoad{ [super viewDidLoad];//self.contentSizeForViewInPopover = CGSiz...
分类:其他好文   时间:2014-06-04 15:47:19    阅读次数:190
UITableView基本使用和cell的属性
在ios的UI中UITableView是个常用且强大的控件基本使用:1>设置代理,一般把控制器设为代理:self.tableView.delegate = self;2>遵守代理的协议且实现方法 协议:代理的协议:UITableViewDelegate;资源的协议:UITableViewSourc....
分类:其他好文   时间:2014-06-04 15:39:23    阅读次数:285
利用KVO监视一个view的frame
首先,keyPath一定是frame,而不是frame.origin.x之类的路径,因为再点下去的话,就是访问结构体内部的值了,KVO是无法检测的,会报错找不到KeyPath。代码如下:1 [_funcMenuVC.view addObserver:self forKeyPath:@"fra...
分类:其他好文   时间:2014-06-02 20:07:13    阅读次数:218
xcode4.3 完成输入后 点击背景关闭键盘
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{[self.view endEditing:YES];}把这个复制到视图对应的.m文件中,即可
分类:其他好文   时间:2014-06-02 19:06:40    阅读次数:219
GCD异步下载网页功能
在不使用GCD下载情况:-(void)btnPress:(id)sender{self.labContent.text=@"";self.indicator.hidden=NO;[self.indicatorstartAnimating];NSOperationQueue*que=[[NSOperationQueuealloc]init];NSInvocationOperation*op=[[NSInvocationOperationalloc]initWithTarget:selfsele..
分类:Web程序   时间:2014-06-02 14:27:37    阅读次数:265
监听键盘右下角的点击
?通过UITextField的代理方法能够监听键盘最右下角按钮的点击1.成为UITextField的代理self.textField.delegate = self;2.遵守UITextFieldDelegate协议,实现代理方法- (BOOL)textFieldShouldReturn:(UITe...
分类:其他好文   时间:2014-06-02 06:43:59    阅读次数:207
Can't add self as subview
iOS7刚发布的时候,总是出现这个 Can't add self as subview  的崩溃,团队内部没出现过,但是外部用户的crash频频上报这个崩溃。 异常描述和崩溃堆栈是这样的: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't add se...
分类:其他好文   时间:2014-06-01 17:32:08    阅读次数:489
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!