@staticmethod, @classmethod, @property 用法及作用class Foo(object) : def __init__(self) : self._name = "property test" print "init" de...
分类:
编程语言 时间:
2015-04-13 18:21:34
阅读次数:
145
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
在UINavigationBar中设置了leftBarbuttonItem此时系统自带的左滑手势失效,应该如何开启?
self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;...
分类:
移动开发 时间:
2015-04-13 16:51:45
阅读次数:
717
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
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
-
(void)exitApplication
{
[UIView
beginAnimations:@"exitApplication" context:nil];
[UIView
setAnimationDuration:0.5];
[UIView
setAnimationDelegate:self];
...
分类:
移动开发 时间:
2015-04-13 14:39:21
阅读次数:
145
来源:http://blog.csdn.net/iukey/article/details/7308433使用UIImageView来播放动画.-(void)viewDidLoad{ [superviewDidLoad]; self.title=NSLocalizedString(@"ImagesT...
分类:
其他好文 时间:
2015-04-13 14:16:59
阅读次数:
88
我决定倒着写了。。。7.给collectioncell加边框 或者给任何view加边框的方法- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { // 初始...
分类:
移动开发 时间:
2015-04-12 19:07:45
阅读次数:
132
实现效果:原来效果: 实现对应的思路有: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