Skip to content

Instantly share code, notes, and snippets.

View ShaoJenChen's full-sized avatar

ShaoJenChen ShaoJenChen

View GitHub Profile
@ShaoJenChen
ShaoJenChen / gist:8ae9728939061ed4a3d4a63d01f7d404
Last active November 2, 2022 19:44 — forked from adamgit/gist:3705459
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. https://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@ShaoJenChen
ShaoJenChen / CenterItemInCollectionView.playground
Created October 22, 2024 04:04 — forked from ylem/CenterItemInCollectionView.playground
Scrolling item on a horizontal UICollectionView, stopped item on center of screen.
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
class WLCollectionCell: UICollectionViewCell {
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}