Skip to content

Instantly share code, notes, and snippets.

View yuchuanfeng's full-sized avatar
🌴
On vacation

chuanfeng yuchuanfeng

🌴
On vacation
View GitHub Profile
#!/bin/bash
#set -e
BUNDLEIDENTIFIER=come.tencent.xin
APPLICATIONIDENTIFIER=***.${BUNDLEIDENTIFIER}
ORIGINDIR=$(pwd)
FILEPATH=***/WeChat
TEMPDIR=$(mktemp -d)
ObjectPath=$BUILT_PRODUCTS_DIR
@yuchuanfeng
yuchuanfeng / Screenshot.swift
Created March 15, 2017 07:55 — forked from nitrag/Screenshot.swift
This will allow you to take a screenshot of a UIView, but more importantly only a section of that view
//
// Screenshot.swift
//
// 1) Take a picture of a UIView
// 2) Take a picture of a UIView's subframe. EG. Fullscreen UIView with a
// small square box in the middle, it will only save what's visible in the box frame
// but not the box itself
import Foundation
import UIKit