//版本判断
if ([[[UIDevice currentDevice]systemVersion]floatValue]>=7.0) {
}
else if ([[[UIDevice currentDevice]systemVersion]floatValue] < 7.0){
}
1.要想使button 在6.1版本不带边框,其type类型需要设置为custom
2.button以及任何视图在6.1中默认背景色为白色,需要设置为透明色,才不会有白色背景
3. 当textField里边没有输入任何东西的时候,
6.1 中用 以下是没用的(因为得到的结果是(null),不是”")[self.againPasswordTextField.text isEqualToString:@“”],要用!(self.againPasswordTextField.text)判断为空的状态
3.
将汉字转换为UTF8格式的
[paw1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
4. self.tabBar.translucent = NO;
5.self.automaticallyAdjustsScrollViewInsets = NO;
6.button : 状态用custom, 否则会自动适配,改变大小等
7.当textField设置了密码后,他的键盘就只有英文和数字