摘要: check me 阅读全文
posted @ 2012-11-07 19:13 我的程序人生 阅读(112) 评论(0) 推荐(0) 编辑
摘要: - (IBAction) renderScrollViewToImage { UIImage* image = nil; UIGraphicsBeginImageContext(_scrollView.contentSize); { CGPoint savedContentOffset = _scrollView.contentOffset; CGRect savedFrame = _scrollView.frame; _scrollView.content... 阅读全文
posted @ 2012-11-07 18:53 我的程序人生 阅读(600) 评论(0) 推荐(0) 编辑
摘要: (1)用expression鼠标滑过变色:<style type="text/css"><!--table{background-color:#000000;cursor:hand;width:100%;}td{onmouseover: expression(onmouseover=function (){this.style.borderColor ='blue';this.style.color='red';this.style.backgroundColor ='yellow'});onmouseout 阅读全文
posted @ 2012-10-31 15:43 我的程序人生 阅读(14772) 评论(0) 推荐(0) 编辑
摘要: // DLog is almost a drop-in replacement for NSLog // DLog(); // DLog(@"here"); // DLog(@"value: %d", x); // Unfortunately this doesn't work DLog(aStringVariable); you have to do this instead DLog(@"%@", aStringVariable); #ifdef DEBUG # define DLog(fmt, ...) NSLog((@ 阅读全文
posted @ 2012-09-27 23:28 我的程序人生 阅读(163) 评论(0) 推荐(0) 编辑
摘要: - (void)moveView:(UITextField *)textField leaveView:(BOOL)leave { UIView *accessoryView = textField.inputAccessoryView; UIView *inputview = textField.inputView; int textFieldY = 0; int accessoryY = 0; if (accessoryView && inputview) { CGRect accesso... 阅读全文
posted @ 2012-09-27 23:07 我的程序人生 阅读(389) 评论(0) 推荐(0) 编辑
摘要: UIViewController* transparentView = [[UIViewController alloc] init];UIViewController* controller = self.view.window.rootViewController;transparentView.view.backgroundColor = [UIColor blackColor];transparentView.view.alpha = 0.5f;controller.modalPresentationStyle = UIModalPresentationCurrentContext;[ 阅读全文
posted @ 2012-09-26 17:18 我的程序人生 阅读(244) 评论(0) 推荐(0) 编辑
摘要: //ARC Helper#ifndef WS_SUPPORT_ARC#define WS_SUPPORT_ARC#if __has_feature(objc_arc_weak) //objc_arc_weak#define WS_WEAK weak#define __WS_WEAK __weak#define WS_STRONG strong#define WS_AUTORELEASE self#define WS_RELEASE self#define WS_RETAIN self#define WS_CFTYPECAST(exp) (__bridge exp)... 阅读全文
posted @ 2012-09-26 14:59 我的程序人生 阅读(1842) 评论(0) 推荐(0) 编辑
摘要: <style>body { margin:8px;}table { margin: 8px auto; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: normal; border: 1px solid #000000; border-collapse: collapse; table-layout: fixed;}td { border: 1px solid #000000; padding: 3px 3px 3px 3px; word... 阅读全文
posted @ 2012-09-21 22:07 我的程序人生 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 找网上的总有广告,火大,重写一个.Download绿盟地址 阅读全文
posted @ 2012-09-06 16:57 我的程序人生 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.下载zip包Download;2.解压到到Mac系统根目录,生成"wget-1.13.4.tar.gz"文件;3.打开终端;4.输入:tar zxvf wget-1.13.4.tar.gz5.输入:cd wget-1.13.46.输入:sudo ./configure --with-ssl=openssl等待结束;7.输入:sudo make等待结束;8.输入:sudo make install 等待结束;成功测试:进入刚刚安装的目录用cd命令;输入:wget www.baidu.com 阅读全文
posted @ 2012-08-31 14:34 我的程序人生 阅读(3454) 评论(0) 推荐(0) 编辑