iOS开源:CBPic2ker - 图片选择,不但酷而且美还支持人脸识别

monkeye 7年前
   <p style="text-align:center"><img src="https://simg.open-open.com/show/e3c12aea5d2371be5fb064e907c01b73.jpg"></p>    <h2>效果</h2>    <p><img src="https://simg.open-open.com/show/ab48c2b1f60bf187e6024d2616f2ab6e.gif"></p>    <h2>特性</h2>    <ul>     <li>酷</li>     <li>给你丝滑的美</li>     <li>人脸识别</li>    </ul>    <h2>版本要求</h2>    <ul>     <li>iOS 8.0</li>    </ul>    <h2>安装</h2>    <p>CBPic2ker 已经支持了 <a href="/misc/goto?guid=4958539574664641318">CocoaPods</a>. 只要在你的 Podfile 文件中添加下面的语句即可:</p>    <pre>  <code class="language-objectivec">pod "CBPic2ker"</code></pre>    <p>不要忘记在 <code>info.plist</code> 文件中添加描述:</p>    <p><img src="https://simg.open-open.com/show/d433afebf7462b7929239e5c0e5e35f4.jpg"></p>    <h2>使用</h2>    <h3>声明</h3>    <pre>  <code class="language-objectivec">#import "CBPic2ker.h"</code></pre>    <h3>调起</h3>    <pre>  <code class="language-objectivec">CBPhotoSelecterController *controller = [[CBPhotoSelecterController alloc] initWithDelegate:self];  controller.columnNumber = 4;  controller.maxSlectedImagesCount = 5;  UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:controller];  [self presentViewController:nav animated:YES completion:nil];</code></pre>    <h3>代理事件</h3>    <pre>  <code class="language-objectivec">- (void)photoSelecterController:(CBPhotoSelecterController *)pickerController sourceAsset:(NSArray *)sourceAsset {   /...  }  - (void)photoSelecterDidCancelWithController:(CBPhotoSelecterController *)pickerController {     /...  }</code></pre>    <h2>作者</h2>    <p>cbangchen, <a href="/misc/goto?guid=4959749928065858414">cbangchen007@gmail.com</a></p>    <h2>版权声明©️</h2>    <p>CBPic2ker is available under the MIT license. See the LICENSE file for more info.</p>    <p>项目主页:<a href="http://www.open-open.com/lib/view/home/1497488687489">http://www.open-open.com/lib/view/home/1497488687489</a></p>    <p> </p>