码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
【引用】python 静态函数 类函数 实例函数
1.关于定义类的一些奇特之处 今天在Python中定义一个类,很奇怪,不需要事先声明它的成员变量吗?暂时不知,先记录下来:classAccount(object):"一个简单的类"account_type="Basic"def__init__(self,name,balance):"初始化一个新的A...
分类:编程语言   时间:2014-08-04 21:25:17    阅读次数:351
iOS开发UI篇—无限轮播(功能完善)
iOS开发UI篇—无限轮播(功能完善)一、自动滚动添加并设置一个定时器,每个2.0秒,就跳转到下一条。 获取当前正在展示的位置。 1 [self addNSTimer]; 2 } 3 4 -(void)addNSTimer 5 { 6 // NSTimer timerWithTim...
分类:移动开发   时间:2014-08-04 21:24:38    阅读次数:427
ios开发之NavBar和TarBar使用技巧
1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : self.navigationController.navigation...
分类:移动开发   时间:2014-08-04 20:39:47    阅读次数:228
Multiply Strings leetcode java
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:编程语言   时间:2014-08-04 13:58:57    阅读次数:285
ios7去除手势滑动返回
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { self.navigationController.interactivePopGestur...
分类:移动开发   时间:2014-08-04 13:56:17    阅读次数:233
javascript之window对象
window :window对象是BOM中所有对象的核心,除了是BOM中所有对象的父对象外,还包含一些窗口控制函数。1、全局的window对象 JavaScript中的任何一个全局函数或变量都是window的属性。2、window与self对象 self对象与window对象完全相同,self通.....
分类:编程语言   时间:2014-08-04 13:54:07    阅读次数:428
设置UITableView背景透明/监听cell左边的删除按钮的点击事件
_tableView = [[UITableView alloc] init]; _tableView.delegate = self; _tableView.dataSource = self; _tableView.frame = CGRectMake(kZero, 6...
分类:其他好文   时间:2014-08-04 13:39:27    阅读次数:268
把txt文件中的json字符串写到plist文件中
- (void)json2Plist{ NSString *filePath = [self applicationDocumentsDirectoryFileName:@"json"]; NSMutableArray *tempArray = [[NSMutableArray allo...
分类:Web程序   时间:2014-08-04 13:38:27    阅读次数:232
window.close(); 关闭浏览器窗口js代码的分析总结
序号关闭代码需要确认无任何作用无需确认测试1window.close()IE7firefox,chrome,safariOperaClose2window.opener=null;window.open('','_self');window.close();firefoxIE7,Opera,chro...
分类:Windows程序   时间:2014-08-04 13:35:07    阅读次数:304
保持按钮的高亮状态
//设置UIButton在点按住时附带高亮效果_addMusicBtn.showsTouchWhenHighlighted = YES;[_addMusicBtn addTarget:self action:@selector(addMusicAction:) forControlEvents:UI...
分类:其他好文   时间:2014-08-04 13:32:47    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!