码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
ToastDemo
效果图:工程图:注意:需要加入的第三方Toast.RootViewController.m//点击任何处,弹出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.view makeToast:@"Th...
分类:其他好文   时间:2014-10-27 17:05:16    阅读次数:248
Valid Parentheses
典型的用栈(stack)结构解决问题的例子class Solution: def isPair(self,s1,s2): if (s1=='(' and s2==')')or (s2=='(' and s1==')'): return True ...
分类:其他好文   时间:2014-10-27 14:17:47    阅读次数:186
MTLableAlertDemo
效果图:工程目录:此代码需要加第三方库,MLTableAlert.RootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showTableA...
分类:其他好文   时间:2014-10-27 14:14:54    阅读次数:152
SpringMVC使用FileUpload进行文件上传
导入FileUpload和common-io的Jar包 1、Test.jsp: self/testFileUpload.do" method="post" enctype="multipart/form-data"> 2、controller: @RequestMapping(value="/testFileUpload...
分类:编程语言   时间:2014-10-27 12:47:59    阅读次数:171
DXAlertViewDemo
效果图:工程图:此工程要引入第三方库DXAlertViewRootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self twoBtnClicked]...
分类:其他好文   时间:2014-10-27 12:30:42    阅读次数:223
STAlertViewDemo
效果图:工程图:注意,此工程需要导入第三方库STAlertViewRootViewController.m//点击任何处,弹出按钮-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showTextFie...
分类:其他好文   时间:2014-10-27 12:15:46    阅读次数:193
PHP学习笔记二十二【静态方法二】
name=$name; } //入学,静态方法无法操作非静态变量,因为静态方法(变量)是属于类,而非静态的成员变量时属于对象的 static function enterSchool($ifee) { self::$fee+=$ifee; } } $...
分类:Web程序   时间:2014-10-26 22:41:57    阅读次数:284
Python : Polymorphism
class Animal: def __init__(self, name): # Constructor of the class self.name = name def talk(self): # Abstract method, de...
分类:编程语言   时间:2014-10-26 21:07:49    阅读次数:281
quick-cocos2d-x3.2 scheduler使用注意事项
最近在使用scheduler时发现如下问题 调用: local scheduler = require(cc.PACKAGE_NAME .. ".scheduler") function MainScene:ctor() self.player_:pos(self.player_:getContentSize().width / 2 , display.height / ...
分类:其他好文   时间:2014-10-26 18:26:54    阅读次数:140
二叉树遍历模板(递归,非指针)
前序遍历:void search(int x) cout<<a[x].self; if(a[x].left!=-1)search(a[x].left); if(a[x].right!=-1) search(a[x].right);中序遍历:
分类:其他好文   时间:2014-10-26 18:14:10    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!