Skip to content

Instantly share code, notes, and snippets.

View cleexiang's full-sized avatar
🎯
Focusing

C.L cleexiang

🎯
Focusing
View GitHub Profile
import UIKit
import AVFoundation
import Photos
import MobileCoreServices
class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
startVideoToGIFProcess()
@cleexiang
cleexiang / PHPickerViewController+Promise.swift
Last active July 29, 2021 04:25
Wrap PHPickerViewController with PromiseKit
//
// PHPickerViewController+Promise.swift
//
// Created by cleexiang on 2021/5/22.
//
import Foundation
import PhotosUI
import PromiseKit
import Photos
source ~/.bash_profile
cd ${SRCROOT}
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json clean
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json build
oclint-json-compilation-database | sed 's/\(.*\.\m\{1,2\}:[0-9]*:[0-9]*:\)/\1 warning:/'
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}
@cleexiang
cleexiang / gist:2cee4d774ca42406e768
Last active August 29, 2015 14:13
iOS开发常见问题解决汇总

###iOS开发常见问题解决汇总

####代码篇

  • 隐藏空白cell的分割线

    UIView *footer =[[UIView alloc] initWithFrame:CGRectZero]; myTableView.tableFooterView = footer; [footer release];