The basic framework of the project to build iOS

2198604-210f1f18b10133ea.jpg

Pure Code Project

New Construction

  1. File ---> New ---> Project ---> Single View App
The left Explanation
Product Name Product name, project name, the name of the software
Team Development team (optional)
Organization Name Company name, organization name
Organization Identifier The company's unique identification
Bundle Identifier Unique identification software (usually Organization Identifier + Product Name)
Language Objective-C / Swift
Use Core Data Frame: the call in a manner corresponding to the object data access interface to access data
Include Unit Tests Unit Testing included
Include UI Tests Automated testing automated testing framework UI interactions
  1. Remove unnecessary classes

ViewController.h
ViewController.m
Main.storyboard

  1. Click Project ---> General

Identity

The left Explanation
Display Name Application name on the phone screen
Bundle Identifier Unique identification software
Version App Store and the version number displayed in iTunes
Build Developers version (test)

Deployment Info

The left Explanation
Deployment Target Adjustment supported version
Devices Choose to develop devices (Universal / iPhone / Ipad)
Main interface The main interface (if implemented 2: Remove unnecessary class, the delete option and press Enter)
Device Orientation Machine direction (Portrait: Default / Upside Down: turned upside / Landscape Left: Flip left / Landscape Right: right inversion)
Status Bar Style The status bar style (Default: Default Black / Light: bright white)
Hide status bar Hide Status Bar
Requires full screen 是否全屏
  1. 点击项目 ---> Build Settings ---> Build Options --->Enable Bitcode 改为NO。BitCode功能详解

    对应iOS,bitcode是可选的。
    对于watchOS,bitcode是必须的。
    Mac OS不支持bitcode。

  2. info.plist中添加 App Transport Security Settings的Allow Arbitrary Loads 设置为YES,开启http。

  3. 添加应用白名单:在info.plist增加key:LSApplicationQueriesSchemes,类型为NSArray

配置项目

  1. 权限管理(常用排序)

  2. 导入第三方库

常用的库

AFNetworking:网络请求组件

SDWebImage:图片缓存框架

Masonry:轻量级布局框架

fmdb:本地数据库组件

MBProgressHUD:菊花提示框

MWPhotoBrowser:照片浏览控件

MJRefresh:下拉刷新,上啦加载

IQKeyboardManager:全局键盘管理

GPUImage:图片渲染引擎,带有多款滤镜

常用的第三方服务

友盟分享

极光推送

腾讯Bugly:异常上报和运营统计

mob验证码服务

微信·开放平台:登录、分享、支付等

支付宝开放平台:支付等

高德开放平台 | 高德地图API :定位、导航等

百度开放平台 | 百度地图API SDK :定位、

编写代码

  1. 新建 pch 文件

  2. 创建接口文件

  3. 写代码

最后,觉得有用记得给个喜欢❤️!非常感谢!

简书个人主页:https://www.jianshu.com/u/281c41cc90bc

转载于:https://www.jianshu.com/p/57225eedc5ac

Guess you like

Origin blog.csdn.net/weixin_34365417/article/details/91166722