1,程序的健壮性2,编译时候校验执行时候校验respondsToSelector,判断某个类 是否实现了该方法- (IBAction)linkClickAction:(id)sender{ [NSObject cancelPreviousPerformRequestsWithTarget:send....
分类:
其他好文 时间:
2014-06-28 22:31:45
阅读次数:
271
本节单词记忆:属性 1.target 2._blank 3._self 4._top 5._parent网页学习网提示:html语言非常简单,不需要逻辑理解,而绝大部分朋友觉得它难以掌握,90%的原因在于英语单词不过关,所以每节记忆几个单词是非常有必要的。在上节作业中,如果单击left窗口中的导航列...
分类:
其他好文 时间:
2014-06-20 18:28:29
阅读次数:
251
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] init...
分类:
其他好文 时间:
2014-06-20 18:23:14
阅读次数:
160
设置UINavigationController标题的属性 self.title = @"产品详情"; [self.navigationController.navigationBar setTitleTextAttributes:\ [NSDictionary dictiona...
分类:
其他好文 时间:
2014-06-20 17:28:59
阅读次数:
237
[self performSelectorOnMainThread:@selector(loadData) withObject:nil waitUntilDone:NO];performSelectorOnMainThread的作用就如其名,是在主线程执行某个selector, 所有的UIKit里...
分类:
其他好文 时间:
2014-06-18 09:14:44
阅读次数:
330
我们在工程中,或多或少的要修改控件的坐标-宽度-高度,于是,经常性的见到大家self.view.frame.origin.x,self.view.frame.size.width.........相当的麻烦,在这里向大家推荐一个比较好的工具类,是UIView的类目,它里面对于求坐标,求高度什么的做了封装,很方便大家调用.
@下载链接:点击这里
@...
分类:
其他好文 时间:
2014-06-18 07:25:34
阅读次数:
213
[self.navigationItem
setLeftBarButtonItem:leftButton]; 这样设置在ios7上按钮默认是蓝色
解决方法:
leftButton.tintColor = [UIColor
whiteColor];...
分类:
移动开发 时间:
2014-06-18 07:07:37
阅读次数:
888
class DictSerializable(object):
def as_dict(self,*args):
result = OrderedDict()
keys=args or self.__mapper__.c.keys()
for key in keys:
if hasattr(self,key)...
分类:
编程语言 时间:
2014-06-18 06:25:55
阅读次数:
596
button.png,尺寸为:24x60现在我们把它用作为按钮背景,按钮尺寸是150x50:// 得到view的尺寸CGSize viewSize = self.view.bounds.size;// 初始化按钮UIButton *button = [[UIButton alloc] init];/...
分类:
移动开发 时间:
2014-06-17 23:34:41
阅读次数:
337
最简单的不相交集的实现,来自MAW的《数据结构与算法分析》。代码:class DisjSet: def __init__(self, NumSets): self.S = [0 for i in range(NumSets+1)] def SetUnion(self, S,...
分类:
编程语言 时间:
2014-06-17 15:17:56
阅读次数:
265