码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
Python @staticmethod, @classmethod, @property
@staticmethod, @classmethod, @property 用法及作用class Foo(object) : def __init__(self) : self._name = "property test" print "init" de...
分类:编程语言   时间:2015-04-13 18:21:34    阅读次数:145
Root of AVL Tree
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any...
分类:其他好文   时间:2015-04-13 18:14:58    阅读次数:243
iOS开发--左滑返回手势失效
在UINavigationBar中设置了leftBarbuttonItem此时系统自带的左滑手势失效,应该如何开启? self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;...
分类:移动开发   时间:2015-04-13 16:51:45    阅读次数:717
oc - NSFileHandle归纳,让对象遵守NSCoding协议,将对象存入数组,再通过解码输出
Person.m #import "Person.h" @implementation Person // 编码 - (id)initWithCoder:(NSCoder *)aDecoder{     self = [super init];     if (self) {         self.name = [[aDecoder deco...
分类:编程语言   时间:2015-04-13 16:46:29    阅读次数:281
Python入门案例之Hello
from Tkinter import * class Application(Frame): def say_hi(self): print 'hello' def createWiegets(self): self.QUIT = Button(self) self.QUIT["text"] = "QUIT" self....
分类:编程语言   时间:2015-04-13 16:44:08    阅读次数:168
iOS程序的退出
- (void)exitApplication {       [UIView beginAnimations:@"exitApplication" context:nil];       [UIView setAnimationDuration:0.5];       [UIView setAnimationDelegate:self]; ...
分类:移动开发   时间:2015-04-13 14:39:21    阅读次数:145
UIImageView 动画
来源:http://blog.csdn.net/iukey/article/details/7308433使用UIImageView来播放动画.-(void)viewDidLoad{ [superviewDidLoad]; self.title=NSLocalizedString(@"ImagesT...
分类:其他好文   时间:2015-04-13 14:16:59    阅读次数:88
[iOS 前端笔记+小技巧]
我决定倒着写了。。。7.给collectioncell加边框 或者给任何view加边框的方法- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { // 初始...
分类:移动开发   时间:2015-04-12 19:07:45    阅读次数:132
封装实现一个自己的tabbar
实现效果:原来效果: 实现对应的思路有:1.首先你要拥有这样的一个控件CSTabBar,继承自tabbar,这样才能做到重构(废话)2.你要在使用CSTabBar使用kvc来实现 [self setValue:newTab forKey:@"tabBar"]; newTab是自己设定的对应的tab....
分类:其他好文   时间:2015-04-12 17:26:10    阅读次数:127
试一下代码着色之类的功能
- (BOOL)isEqualsIgnoreCase:(NSString*)toString { if (NSOrderedSame == [self compare:toString options:NSCaseInsensitiveSearch]) return YES; ...
分类:其他好文   时间:2015-04-12 14:37:07    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!