2013-2-18 ios小总结
??????????????? alert.delegate=self;
??????????????? [alert show];
??????????? }
??????? }
??? }
}
//section里面的内容。
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
??? UILabel *shopNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 3, 100, 30)];
??? shopNameLabel.backgroundColor = [UIColor clearColor];
??? shopNameLabel.text = @"金融街店";
??? shopNameLabel.textColor = [UIColor whiteColor];
???
??? UILabel *shopAddressLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 35, 300, 20)];
??? shopAddressLabel.backgroundColor = [UIColor clearColor];
??? shopAddressLabel.text = @"北京市西城区金融大街甲26号顺成饭店首层";
??? [shopAddressLabel setFont:[UIFont fontWithName:@"Arial" size:13]];
??? shopAddressLabel.textColor = [UIColor whiteColor];
???
??? UIView *sectionView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 70)];
??? [sectionView setBackgroundColor:[UIColor grayColor]];
??? [sectionView addSubview:shopNameLabel];
??? [sectionView addSubview:shopAddressLabel];
??? [shopNameLabel release];
??? [shopAddressLabel release];
??? return sectionView;
}
??? self.myTableView.backgroundView = nil;
id_rsa id_rsa.pub
ssh zhangmw@192.168.201.11
ls -a 看全部文件. ls -lh 更友好的看。
pwd 看路径。 cd . 默认进入自己的路径。
mkdir - p cc/dd/ee? 批量新建文件夹。
rm z在window中是del 是删除文件。
rm - r?? rm -fr? 不提示的删除。
cp 复制文件。
cp a.php b.php 复制a.php???? cp a.php aaa/
rm -rf
cat 看文件的内容。不能看二进制的文件例如world文档。
vim也是看文件内容。
echo "hello world!"里面的符号需要转义。
find 看目录中的文件查找,touch 建立空白的文件。 touch a.php?
mkdir 是创建文件夹。
grep 在文件中找固定的字符串。
grep "md3" a.php
ls -lh | grep "smb.conf"? 意思是查找前面结果中的smb.conf 文件。
上面是管道的用法。
git init 创建一个空白的git路径。
ls -lha
touch a????? echo "hello" > a
cat a??? 查看a 里面的内容。
git status 查看目前git的状态。
git add a? b? c 分别把a b c 都加入进去。
git log 查看版本。 git reset --hard 版本号?? 恢复到指定的版本号中。git reset --mixed 版本号,意思是清理版本。
git rm a? 删除a。
git clone git@code.meijika.com:ios/app.ios.codes/? 就是克隆一个git 到当前目录中。
git pula 获取fu服务器中最新的版本。
从vim中退出是 先按esc键,再按:wq 就是保存并退出。