原创 自己的導航條與系統UINavigationController的導航條進行自動融合與分離

我們在很多APP使用都會遇到,類似的tableview在向上滾動時,會讓自己的導航條與系統的UINavigation的titleview進行融合,而當類似的tableview向下滾動時,又會讓自己的的導航條與系統的UINavigation

原创 swift3播放本地GIF圖

import UIKit import ImageIO class ViewController: UIViewController { @IBOutlet weak var imageView: UIImageView!

原创 [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0

在工程項目運行時底下的調試欄不停地輸出[aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0這些打印內容,干擾 去除辦法如下: 找到Product > Schem

原创 rubygems/core_ext/kernel_require.rb:120:in `require': cannot load such file -- colored2 (LoadError)

在pod lib create出現上面的錯誤時的解決設計方法 targetclouddeMacBook-Pro:FM targetcloud$ pod lib create TGSegment Cloning `https://githu

原创 h264視頻編碼

(由於本文使用swift3調用底層C來實現 h264硬編碼,所以讀者需要對swift3 OC  C均要有一定的基礎才能看懂本文,文後附有代碼執行思路) 創建一個類用於設置h264的設置屬性(參數通過類的對象的屬性的方式來做) // //

原创 swift3使用協議和泛型簡化UITableView的使用

普通我們使用UITableView時我們總是要定義一個ID,然後註冊 tableview.register(cellClass: AnyClass?, forCellReuseIdentifier: String) table

原创 swift3播放webp

// // ViewController.swift // yywebimagetest // // Created by targetcloud on 2017/3/29. // Copyright © 2017年 target

原创 swift3使用協議和泛型簡化UITableView的使用(續)多種類型的cell註冊

1、協議 // // ReusableCell.swift // reusecell // // Created by targetcloud on 2017/3/26. // Copyright © 2017年 targetcl

原创 swift3實現瀑布流

// // ViewController.swift // TGWaterfall // // Created by targetcloud on 2017/3/23. // Copyright © 2017年 targetclo

原创 百思不得姐(4.5.6)最新版高仿

你點進去肯定會喜歡,所以請不要吝嗇你的star,點擊打開鏈接,去下載吧  GitHub:  https://github.com/targetcloud/baisibudejie 運行效果 本DE

原创 pod search找不到自己trunk push的庫的解決方法

本文主要向大家解決pod trunk push成功後,查找自己的框架找不到的解決方法,如pod trunk push了xxx,然後pod search xxx 提示 [!] Unable to find a pod with name,

原创 Error: Could not link:/usr/local/etc/bash_completion.d/brew

在brew update 或brew install某東東時出現下面的提示 $ brew update Updated 1 tap (homebrew/core). ==> Updated Formulae libhttpseverywh

原创 直播APP

https://github.com/targetcloud/TGTV 先Star,後運行 運行步驟 1、先運行TGServer 2、解壓TV/TGTV/TGTV/Resource中的IJKMediaFramework

原创 h264視頻解碼

// // ViewController.m // decoder // // Created by targetcloud on 2017/4/1. // Copyright © 2017年 targetcloud. All r

原创 swift3 用協議實現從XIB加載view

如我們實現了一個類TGEmoticonInputV,這個類是UIView,同時對應的XIB(同名)也已經創建 以前我們要加載這個View的做法是 let v = Bundle.main.loadNibNamed("TGEmoticonIn