码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
tableview 自动滑动到某一行
NSIndexPath *scrollIndexPath = [NSIndexPath indexPathForRow:10 inSection:0];[[self tableView] scrollToRowAtIndexPath:scrollIndexPath atScrollPo...
分类:其他好文   时间:2014-07-14 23:25:38    阅读次数:212
斯坦福 IOS讲义 课件总结 二
1,OC里面传参数个数不同,可以是两个完全不同的方法。如- (void)addCard:(Card *)card atTop:(BOOL)atTop;- (void)addCard:(Card *)card;第二个方法可以这样实现- (void)addCard:(Card *)card{ [self...
分类:移动开发   时间:2014-07-14 22:22:47    阅读次数:316
ios如果写一个提示带动画的View,可以来引导用户行为
先上图: 这个UIView可以这样写: -(id)initWithFrame:(CGRect)frame backImage:(UIImage*)image msgStr:(NSString*)txt txtColor:(UIColor*)color{ self = [super initWithFrame:frame]; if (self)...
分类:移动开发   时间:2014-07-14 11:22:27    阅读次数:246
openerp创建动态视图-fields_view_get
openerp的视图结构是以XML的格式存放于ir.ui.view表中,属于静态格式,设计之后就固定, 但可以通过在model中重写fields_view_get函数,在视图加载时修改arch属性,动态修改视图的结构 def fields_view_get(self, cr, uid, view_i...
分类:其他好文   时间:2014-07-14 10:05:02    阅读次数:362
Module Immediate Install
立即安装所选模块C:\goe7\source\openerp\addons\base\module\module.py def button_immediate_install(self, cr, uid, ids, context=None): """ Installs the selected ...
分类:其他好文   时间:2014-07-14 09:34:02    阅读次数:215
iOS线程开发小结
/*方法名决定是否开启新线程(async,sync),队列类型(全局队列,串行队列)决定开启多少条线程1.快速线程调用*开启后台线程执行任务[self performSelectorInBackground:@selector(test) withObject:nil];*回到主线程执行任务[sel...
分类:移动开发   时间:2014-07-14 08:50:04    阅读次数:328
PHP中$_SERVER的详细参数与说明
PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。 $_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。 $_SERVER['argv'] #传递给该脚本的参数。 $_SERVER['argc'] #包含传递给程序的命令行参数的个数(如果运行在命令行模式)。 $_SERVER['GATEW...
分类:Web程序   时间:2014-07-13 18:54:34    阅读次数:323
微型php框架 include/conf.class.php
<?phpdefined(‘ACC‘)||exit(‘AccessDenied‘);//配置文件读取类classconf{protectedstatic$ins=null;protected$cfg=array(‘db‘=>‘java0620‘);publicstaticfunctiongetIns(){if(self::$ins===null){self::$ins=newself();}returnself::$ins;}finalprotectedfunction__const..
分类:Web程序   时间:2014-07-13 14:33:03    阅读次数:216
ios NSURLRequest NSMutableURLRequest 数据请求
get 请求 #pragma mark - GET登录 - (void)getLogon { // 1. URL NSString *urlStr = [NSString stringWithFormat:@"http://localhost/login.php?username=%@&password=%@", self.userName.text, self.userPw...
分类:移动开发   时间:2014-07-12 22:44:33    阅读次数:267
iOS 去掉导航栏的边界黑线&去掉搜索框的边界黑线和其中文本输入框的阴影 - 解决方案
去掉导航栏的边界黑线 in viewDidload: [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shad...
分类:移动开发   时间:2014-07-12 19:36:20    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!