上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 说到IOS类的模板,有些人感觉很陌生,但是只要有开发过IOS程序的人,其实都用过类的模板,只不过是用的系统自带的类的模板。 例如创建一个ClassTemplateVC继承于UIViewController 创建出来的ClassTemplateVC如下:#import "ClassTemplat... 阅读全文
posted @ 2015-07-16 12:02 Stephen Li 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: 对于- (void)setValue:(id)value forKey:(NSString *)key;函数 官方解释如下Send -setObject:forKey: to the receiver, unless the value is nil, in which case send -rem... 阅读全文
posted @ 2015-05-06 17:01 Stephen Li 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 先看看没有隐藏是什么效果以及代码是什么情况,这样更加直观实现代码如下:(.h文件)#import "TableViewController.h"@interface TableViewController () @property (nonatomic, strong) UITableView *m... 阅读全文
posted @ 2015-04-08 08:51 Stephen Li 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 前几天去国美在线面试,就遇到了上面的问题,当时是笔试,只写出来了第一种方法,现在整理了一下。 //1.performSelector方法;在当前线程中执行的方法,使用默认模式,并延迟执行@selector方法。 [self performSelector:@selector(runDela... 阅读全文
posted @ 2015-04-07 17:10 Stephen Li 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: xcode 6取消了 Empty Application 模板来创建一个工程,创建出来的有工程多了Main.storyboard,默认加载Main.storyboard,但是有很多人还想用代码来实现UI的布局,去除Main.storyboard的有三步:首先如图打开工程下面Supporting ... 阅读全文
posted @ 2014-12-08 18:07 Stephen Li 阅读(2612) 评论(0) 推荐(0) 编辑
摘要: //IOS7.0中利用- (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes context:(NSString... 阅读全文
posted @ 2014-07-11 14:54 Stephen Li 阅读(411) 评论(0) 推荐(0) 编辑
摘要: //下面两个函数是成对出现的若第一个函数返回YES那么第二个方法自动触发执行//是否允许选择不同的Item触发后续操作,YES是允许,NO是不允许-(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectVi... 阅读全文
posted @ 2014-04-19 20:08 Stephen Li 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 闪回查询查看当前数据库中的3个参数,其中UNDO_MANAGEMENT:指定回滚段的管理方式,如果设置为AUTO。则采用撤销表空间自动管理回滚信息UNDO_TABLESPACE:指定用于回滚信息自动管理的撤销表空间名UNDO_RETENTION:指定回滚信息的最长保留时间//查询参数SQL> show parameter undo;NAME TYPE VALUE------------------------------------ ----------- -----------------------------u... 阅读全文
posted @ 2013-05-15 15:08 Stephen Li 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 注意下面红色的是创建表空间保存的路径第1步:创建临时表空间SQL> create temporary tablespace user_temp 2 tempfile 'D:\oracle\product\10.2.0\oradata\orcl\user_temp.dbf' 3 size 50M 4 autoextend on next 50M maxsize 20480M 5 extent management local;表空间已创建。第2步:创建数据表空间SQL> create tablespace user_data 2 logging 3 datafile 阅读全文
posted @ 2013-05-08 15:04 Stephen Li 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 2468 Counting LettersAs a talented student, your boss gave you a task. Given a text string, you should find out which letters appear most frequently.Really simple, isn't it?InputThe first line of the input is the number of test cases. Then some test cases followed.Each test cas... 阅读全文
posted @ 2012-08-27 20:49 Stephen Li 阅读(1344) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页