文档介绍:项目开始前工作
库的cocoapods安装导入
安装使用(http://blog./gf771115/article/details/50403253); 如果在pod install、或者pod update时,不想升级specs库,可以增加忽略参数
pod install --no-repo-update
pod update --no-repo-update
r构建
1)跳子页面隐藏的时候隐藏了导航栏,但下面出现白条无法隐藏,可创建UITabBarController类,在类中调用UINavigationControllerDelegate中willShowViewController和didShowViewController方法;
2)子视图从左往右拖回到根视图,将每个视图控制器的UINavigationController加入代理,在第一个子视图加入sationController.interactivePopGestureRecognizeate = self;调用- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer方法
3)ios9系统后不支持http,文件中加入App Transport Security Settings类型dictionary,在其下添加Allow Arbitrary Loads改成yes;
4)删除storyboad,删除自动生成的sroryboad和lau,在Target->App Icons中的Launch Screen File修改一个xib
5) Bundle display name编写自己项目在手机桌面显示的名字
项目问题解决
ios9后提示框更新
UIAlertController *alert=[UIAlertController alertControllerWithTitle:nil message:@"关注成功" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *action=[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
}];
[alert addAction:action];
//定义第一个输入框;
[alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull