- 浏览: 350398 次
- 性别:
- 来自: 福州
最新评论
-
feishihai:
太 感谢 了!!!其他地方说的都只有一半!!
xcode5 Icon already includes gloss effects doesnot work解决方法 -
hhb19900618:
你这个效果有渐变吗?
UITableView阴影 -
zhaoyubetter:
不对啊。这是遍历 value啊
NSDictionary遍历所有的key和Values -
sunqingquan:
学习啦,加油
NSError code错误列表信息 -
liubiqu:
如果有xib文件需要增加一个language,这样调用选择图片 ...
iphone系统控件里显示中文标题设置
文章列表
1. app包内资源的访问:
NSString* docPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"doc"];
2.程序所在Home目录的访问(home目录有app包, Library目录, Documents目录和tmp目录):
NSHomeDirectory()
3. 获取Documents目录路径:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentD ...
NSLog()是一个很好的工具,它能为调试带来很大帮助。但不幸的是,它过于昂贵,特别是在iPhone上,而且根据你是怎样使用它或你用它来记录什么,它有可能泄露一些敏感和私有信息。网上有些不同的方法在发行版中去除NSLog的 ...
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html
NSLog的格式如下所示:
%@ 对象
%d, %i 整数
[pickerView addTarget:self action:@selector(yourMethod) forControlEvents:UIControlEventValueChanged];
相信Mac OS X 上大部分软件的拖拽安装方式给很多刚刚从 Windows 来到 Mac OS X 上的朋友带过来惊喜,他们发现原来软件安装也可以如此简单!但是,在卸载一个软件的时候,对于熟悉了 Windows 下 Uninstaller 的同学又要嘀咕了,这样是否直接删除 App 就可以做到完整卸载了呢?本篇文章,就从 Mac OS X App 的基本结构出发,带大家认识 Mac OS X App,从而了解如何卸载 Mac OS X App。
1: Mac OS X App 基本常识。我们平常接触的大部分 App,其实是一个文件夹结构,只不过,Mac OS X 让它看起来是一个单独的 ...
scroll view 原理//作者:禚来强 iphone开发*****:79190809 邮箱:zhuolaiqiang@gmail.com转帖请保留在滚动过程当中,其实是在修改原点坐标当手指触摸后, scroll view会暂时拦截触摸事件,使用一个计时器,假如在计时器到点后,没有发生手指移动事件,那么,scroll view发送tracking events到被点击的subview假如在计时器到点前,发生了移动事件,那么 scroll view 取消tracking自己发生滚动子类可以重载touchesShouldBegin:withEvent:inContentView: 决定自己是否接 ...
CGRect rr = [cell convertRect:cell.jingduBtn.frame toView:self.view];
意思是:把UITableViewCell的subview(jingduBtn)的frame convert 到 controller的View中,
这里的controller view 包含一个UITableView, UITableView里有多行UITableVieCell
navBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 40)];
[self.view addSubview:navBar];
navBar.barStyle = UIBarStyleDefault;
[navBar release];
UIBarButtonItem* cancelBtnItem = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarB ...
UILongPressGestureRecognizer *lpgr = [[UILongPressGestureRecognizer alloc]
initWithTarget:self action:@selector(handleLongPress:)];
lpgr.minimumPressDuration = 1.0; //seconds
lpgr.delegate = self;
[tv addGestureRecognizer:lpgr];
[lpgr release];
-(void)handleLongPress:(U ...
-(float)getTableViewHeight
{
[self.tableView layoutIfNeeded];
return self.tableView.contentSize.height;
}
需要先layoutInfNeeded
NSString去除左右空格
- 博客分类:
- NSString
NSString* str = @" [d da fa] ";
NSString* res = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
http://www.mac52ipod.cn/post/apple-mac-os-x-lock-screen-with-password.php
http://www.mac52ipod.cn/post/make-apple-iphone-ipad-ipod-touch-as-u-disk-on-mac-pc-iphone-explorer.php
http://www.mac52ipod.cn/post/install-run-tencent-rtx-on-mac-os-x-tutorial.php
比较两个NSDate的间隔
- 博客分类:
- NSDate
[[NSDate date] timeIntervalSinceDate:preLocationDate] > 60.0f
NSTimeInterval返回的是一个double值,单位是秒