码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
iOS “自定义返回按钮”与“系统侧滑”的组合使用
当我们使用自定义button进行popViewController,并将系统NavigationBar隐藏时, (self.navigationController.navigationBarHidden = YES;) NavigationBar的系统自带的侧滑手势便不存在了。 当然我们可以在当期视图上加滑动手势,但是容易出现bug,特别是视图中存在scrollview、table...
分类:移动开发   时间:2015-04-03 15:21:03    阅读次数:142
UIview 设置指定的几个角为圆角
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(120,10,80,80)]; view.backgroundColor = [UIColor redColor];[self.view addSubview:view2]; UIBezierPath *maskPath = [UIBezierPath be...
分类:其他好文   时间:2015-04-03 15:18:56    阅读次数:129
iOS UITableViewCell自适应高度
在cell.m文件中 1)初始化方法中: self.lalName=[[UILabel alloc] initWithFrame:CGRectMake(71, 5, 250, 40)]; [self addSubview:self.lalName]; 2)创建方法://给用户介绍赋值并且实...
分类:移动开发   时间:2015-04-03 15:03:56    阅读次数:140
js面向切面编程
Function.prototype.before=function(func){var _self=this;return function(){if(func.apply(this,arguments)==false){return false;}return _self.apply(this,...
分类:Web程序   时间:2015-04-03 14:43:59    阅读次数:139
下拉弹窗 pop push动画实现
- (void)popTitleView:(UIButton *)btn{ if (popView.superview ==self.view) { CATransition *animation =[CATransition animation]; animation.delegat...
分类:其他好文   时间:2015-04-03 13:22:54    阅读次数:134
Pyhon之类学习1
#!/usr/bin/python # Filename: class.py__metaclass__=type class Person: def set_name(self,name): self.name=name def get_name(self): ...
分类:其他好文   时间:2015-04-03 12:48:47    阅读次数:168
ios self.和_区别
- "self."调用该类的setter或getter方法,"_"直接获取自己的实例变量。property 和 instance variable 是有区别的。- 前者声明后,如果没有readonly修饰的话,该类获得两个方法,一个是setter和getter。property声明后,该类会获得一个...
分类:移动开发   时间:2015-04-03 10:59:23    阅读次数:150
iOS层级跳转(UINavigationController跳转返回到指定的页面)
[self.navigationController pushViewController:[self.navigationController.viewControllers objectAtIndex:i] animated:YES];i 就是你所要到得页面在总的页面的位置。当页面比较多时,上面那个方法可能不太合适,可以使用以下方法for (UIViewController *controll...
分类:移动开发   时间:2015-04-03 09:34:45    阅读次数:141
tableView的创建
总结一下tableView的知识点1.tableView的创建 //tableView的创建 //1.初始化 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITab...
分类:其他好文   时间:2015-04-02 20:46:23    阅读次数:97
手势。。。
UITouch1.UITouch *touch = [touches anyObject];//找到触摸事件 if([touch.view isKindOfClass:[UIImageView class]]){ CGPoint point = [touch locationInView:self....
分类:其他好文   时间:2015-04-02 20:35:14    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!