0%

中文English

New Release Version Available: V1.5 Definitive Edition(Updated on 2019-9-30)

Update Log

1.5 2019-9-30

1 EFMacros: ROOT_VC adjustment, applicable to a wider range.
2 EFUtils:
2.1 there is a new utility method boolValueFromNumber:, which can quickly get the boolValue from the NSNumber.
2.2 two new NSDictionary utility methods are added: convert the specified key value to a string and determine whether the specified key value is equal to the specified value.
2.3 fixes problems with two NSDictionary utility methods that sometimes result in incorrect results: determining whether the specified key value is empty, and determining whether key value in dictionary might be null.
3 EFBase:
3.1 EFNavigationBar dark mode now available on the title and the bar button item both.
3.2 EFBaseViewController/EFBaseTableViewController:
3.2.1 add an independent method to use location authorization, and and solve the problem of display using location authorization alert sheet for elapsed a long time.
3.2.2 improved the processing logic of the controller’s custom back and custom cancel. It supports switching at any time. You can customize the back button/custom cancel button first.
3.2.3 optimized photo selector, now supports the default front-camera when taking photos.
3.3 EFBaseWebViewController: the title “页面加载中” is displayed when the page is initial loading. The “关闭” button now shows up in time.
3.4 BaseDataModel: dataID and dataName are no longer required to be provided.
4 ImageUploadTool: supports the custom URL of the image uploading API and the image Key used for the image uploading API, and can customize the prompt information when uploading.
5 AppConfig: categorize and add instructions to be more organized.
6 AppMacros: move the Theme Colors configuration item to AppConfig.
7 AppDelegate: add NSUserDefaults configuration item: init once, for something run by App init once.
8 Additional privacy permission description for location always usage has been added.
9 synchronous improved demo App, integrated with AFHTTPTool demo.
10 eggs: continuously click the icon in login to switch server environment, only development/test is valid.

阅读全文 »

Cocoapods极大简化开源库的部署工作,并能时时获得最新更新

安装 Cocoapods:

更新gem源

打开终端
运行以下命令查看Ruby版本号是否较新,一般为2.0.0以上
Ruby –v

运行以下命令替换源为国内源镜像,并查看源列表确保只有 gems.ruby-china.com

1
2
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l

运行以下命令查看gem版本号是否为较新
gem -v

如果版本过旧请运行以下命令更新 (请确认你已经为你的帐户设置了密码)
sudo gem update --system

注:因初始源地址为国外地址,因此步骤调整为先替换国内源,再更新gem版本。

安装 Cocoapods并初始化 Pods库

运行以下命令安装cocoapods
sudo gem install -n /usr/local/bin cocoapods --pre

运行以下命令查看cocoapods是否安装成功,安装成功会提示命令用法
pod

运行以下命令初始化 Pods库
pod setup

注:初始化 Pods库也可以通过git Clone到帐号主目录 .cocoapods/repos/。CocoaPods github: https://github.com/CocoaPods/Specs.git

Cocoapods常用的一些命令

搜索开源库

使用搜索命令验证一个开源库是否兼容cocoapods部署,搜到即表示兼容
pod search SDWebImage

部署到新项目

为一个新项目添加cocoapods部署支持:

  1. 关闭欲添加cocoapods部署新项目,并转到该项目的目录,假定在当前用户Documents文件下新建了一个newProject项目并且要添加cocoapods部署
    cd ~/Documents/newProject/

  2. 运行以下命令初始化podfile
    touch Podfile

  3. 运行以下命令用文本编辑来编辑podfile并保存 (运行命令前确保文本编辑偏好设置中格式为纯文本、取消选项中所有项)
    open -e Podfile

    阅读全文 »

第1步:下载演示项目

从极致框架官方git下载或Clone框架演示项目源文件到本地,后面会用到。

以下以Xcode为例,Xcode菜单-Source Control-Clone…
打开git窗口

直接在顶部地址栏拷贝git地址,点Clone(注:点这里获取极致框架演示项目的最新git地址)
从git地址Clone代码

为新项目起个名字(如HappyDay),选择保存目录,点Clone
为新项目起个名字,并保存

阅读全文 »

中文 | English

极致框架是一整套力求快速构建 iOS项目基本框架的完整解决方案,由核心框架、项目基本框架、核心UI以及核心工具集组成一个整体。项目基本框架基于核心框架封装快速解决基础问题,核心UI基于 Storyboard的封装,自动布局加持,摆脱代码定制烦恼,不断壮大的核心工具集满足常见功能速成方案的需要。

Hello world! 极致框架!

平台截图

中文English

The ExtremeFramework is a complete solution to quickly create the iOS project basic files, which is composed of the core framework, the basic folders and files of project, the core UI kit and the core tool kit. The basic folders and files of project is based on the core framework to quickly solve the basic problems. The core UI kit is based on the Storyboard, and the autolayout, it’s so easy to customize without code programming. The core tool kit greater than ever to use common function quickly and easily.

Hello world! ExtremeFramework!

Screenshot