摘要:
sudo vi /etc/hosts然后提示输入系统密码hosts文件就自动打开了接着输入 i进入编辑模式将添加的网站,ip拷贝进去编辑完成之后,按esc,输入 : wq这样就更改完成了.w! 或者 wq! 进行强制写入然后退出http://www.douban.com/group/topic/7726277/ 阅读全文
摘要:
self.tableView.rowHeight = kThumbnailRowHeight;self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 阅读全文
摘要:
scrollView 的ContentSize一定要比 它的frame大,否则无法响应滑动的事件http://www.iphonedevsdk.com/forum/iphone-sdk-development/102099-uiscrollview-tabbar-application.htmlLet's say you put a scroll view on the screen, and it is 100x100. If the content size is also 100x100, why would it scroll? You can already see ever 阅读全文
摘要:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com/"]];记住前面的http:// 以及后面的 / 否则无法调用打开,很郁闷 阅读全文
摘要:
http://stackoverflow.com/questions/1553118/adding-image-to-navigation-barloadView里面 无法添加,只能在 viewWillAppear里面进行添加 阅读全文
摘要:
http://stackoverflow.com/questions/6434911/ttbutton-not-shownThis code snippet looks fine. Where are you declaring the "forwardActionButton" style? It's not a three20 existing TTStyle as far as I know. Any custom styles should be in a style sheet class and should be loaded in the app d 阅读全文
摘要:
TTButton* button =[TTButton buttonWithStyle:@"forwardActionButton:" title:@"Login"];[button setFrame:CGRectMake(245,160,65,33)];[self.view addSubview:button];不要忘记了@"forwardActionButton:" 里面的冒号 阅读全文
摘要:
在断点处 鼠标右键->edit breakpoint 选中,删除所有断点就可以,而且我发现此问题引起的原因是在连续几个句子中设完断点后,而我们又将这段代码删除引起的,对应的位置进行处理,不然有些断点设置了,删除了原有的代码,后面就会有问题,死活找不到原因 阅读全文
摘要:
UIImageView上面不能加载button否则button的 action无法响应 阅读全文
摘要:
NSString *imageB64 = [NSString stringWithFormat:@"%@",[uneImage imageB64]];NSData *dataImageB64 = [NSData dataFromBase64String:imageB64];UIImage *imagePNG = [UIImage imageWithData:dataImageB64];NSString *tempURL = [[TTURLCache sharedCache] storeTemporaryImage:imagePNG toDisk:NO];MockPhoto 阅读全文