码迷,mamicode.com
首页 >  
搜索关键字:window-top opener parent self parent与opener的区别    ( 21313个结果
重构摘要8_重新组织数据
《重构-改善既有代码的设计》Martin Fowler 摘要: 第八章 重新组织数据 Self Encapsulate Field 自封装字段 你直接访问一个字段,但与字段之间的耦合关系逐渐变得笨拙。 为这个字段建立取值/设置函数,并且只以这些函数来访问字段。 子类用超类数据时 Replace Data Value with Object 以对象取代数据值 ...
分类:其他好文   时间:2014-06-20 12:42:22    阅读次数:280
页面跳转问题presentViewController
跳转页面的时候 我用的是 [self presentViewController:nLogin animated:NO completion:^{              }];,有A到B再到C,我现在再C页面返回的时候我想直接跳转到A页面 应该怎么做呢? 在C中 //关掉自己     [self dismissViewControllerAn...
分类:其他好文   时间:2014-06-20 12:25:46    阅读次数:237
Airplay 教程: 一个 Apple TV 多人竞答游戏(4)
现在,客户端需要根据服务器发来的命令进行动作。在方法 receiveData:fromPeer:inSession:context:末尾加入代码:   if ([commandReceived hasPrefix:kCommandQuestion] && !self.isServer)   {      NSString *answersString = [commandReceived...
分类:移动开发   时间:2014-06-20 10:29:29    阅读次数:259
这种垃圾的控制,恶心,
caseUNDOATTENTION: { FriendInfo *info = [dataArray objectAtIndex:0]; [self.managerattentionList:_pageIndexoneRecord:YESotherId:-100]; ...
分类:其他好文   时间:2014-06-13 13:59:53    阅读次数:201
Dojo Tree设置默认选中项并且获得它
先上用来生成Tree的JSON数据 [ { "id": "Root", "name": "资源目录" }, { "id": "PF", "name": "批发价格", "parent": "Root" }, { "id": "PF93", "name": "93#", "parent": "
分类:其他好文   时间:2014-06-13 13:49:33    阅读次数:442
Airplay 教程: 一个 Apple TV 多人竞答游戏(2)
这个方法并未完成,仍然还要加入代码。将下列代码加到上述代码之后:    // Setup window in external screen    self.mirroredWindow = [[UIWindow alloc] initWithFrame:self.mirroredScreen.bounds];    self.mirroredWindow.hidden = NO; ...
分类:移动开发   时间:2014-06-07 14:47:25    阅读次数:399
IOS中NSNotification使用笔记
1 基本用法 添加观察(可能很多页面) [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeIntlCode:) name:NOTIFICATION_SUCCESS_SELECT_INTLCODE object:nil]; 发出通知(可能只有一个页面) ...
分类:移动开发   时间:2014-06-07 13:37:38    阅读次数:223
python实现的链表
python实现的链表,包括插入、查找、删除操作 #!/usr/bin/python class linknode(): def __init__(self,k,n=None): self.key=k; self.next=n; def createlist(): #创建链表 n=raw_input("enter the num of nodes"); n=int(...
分类:编程语言   时间:2014-06-07 12:23:46    阅读次数:204
(转)Python记录@classmethod 修饰符
通常情况下,如果我们要使用一个类的方法,那我们只能将一个类实体化成一个对象,进而调用对象使用方法。比如: class Hello(object): def __init__: ... def print_hello(self): print "Hello" 要用 ...
分类:编程语言   时间:2014-06-07 07:44:56    阅读次数:218
[转载]JQ 选择器大全
jquery获取父元素方法比较多,比如parent(),parents(),closest()这些都能帮你实现查找父元素或节点,下面我们来一一讲解:先举个例子,jquery获取父节点jquery获取父元素我们的目的是通过 id 为 item1 的便签a取到 class 为 parent1 的ul元素...
分类:其他好文   时间:2014-06-07 06:52:15    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!