Subsets:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set mus...
分类:
其他好文 时间:
2014-06-29 00:03:40
阅读次数:
272
1,程序的健壮性2,编译时候校验执行时候校验respondsToSelector,判断某个类 是否实现了该方法- (IBAction)linkClickAction:(id)sender{ [NSObject cancelPreviousPerformRequestsWithTarget:send....
分类:
其他好文 时间:
2014-06-28 22:31:45
阅读次数:
271
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...
分类:
其他好文 时间:
2014-06-20 23:34:47
阅读次数:
308
本节单词记忆:属性 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.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
Given a set of distinct integers,
S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For example,
...
分类:
其他好文 时间:
2014-06-18 00:39:26
阅读次数:
301