December 2010
UITableViewCell的背景

Saved Blog UITableViewCell是一个很常用的View,通常我们都是直接使用它。 – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @”CellIdentifier”; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; if (!cell) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier] autorelease]; } cell.textLabel.text = [NSString stringWithFormat:@”Line: %d”, indexPath.row]; return cell; } 得到这个效果: 现在我们给tableViewCell加上点背景色: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @”CellIdentifier”; UITableViewCell […]
吉他谱-忽然(李志)
时代的痕迹
一叶知秋 吉他谱
CloudApp

推荐一个Mac下的不错的同步软件,可以方便地在公司和家里把文件放到服务器端,这样无论在哪一边都可以很容易地得到需要地文件。 CloudApp 从这个网址进入 GetCloudApp 注册一个帐号,下载安装客户端之后,运行之。会看到在右上角总多的图标中多了一个“云”的图标。 点击,打开Preferences->Account 输入你的帐号 然后 ….. 把需要上传的文件直接拖上去就搞定了! 另外一个更酷的功能是保存书签。有时候在公司看到一个不错的blog地址,想要回家之后再看看,使用cloudApp就很方便了。 在Safari里使用热键(默认是Ctrl+Alt+Command+U)就把当前页面的地址保存到云端了。当然也可以使用拖放完成这个需求。 刚刚用上CloudApp没多久,说不定还有些未被发现的好东西。 限于Mac平台的话,用户群应该不会太大吧。祝CloudApp能够存活在墙内吧。