Skip to content

Instantly share code, notes, and snippets.

View s2339956's full-sized avatar

TinXie-易致 s2339956

View GitHub Profile
@Alticha
Alticha / offsets.c
Created March 2, 2019 19:28
Darwin Kernel Version 18.2.0: Mon Nov 12 20:32:02 PST 2018; root:xnu-4903.232.2~1/RELEASE_ARM64_T7001
&(offsets_t) {
.constant =
{
.version = "Darwin Kernel Version 18.2.0: Mon Nov 12 20:32:02 PST 2018; root:xnu-4903.232.2~1/RELEASE_ARM64_T7001",
.kernel_image_base = 0xfffffff007004000,
},
.funcs =
{
.copyin = 0xfffffff0071b90b0,
.copyout = 0xfffffff0071b94e4,
@huang5556019
huang5556019 / 自己总结的iOS、mac开源项目及库
Created September 18, 2015 07:28
自己总结的iOS、mac开源项目及库
# TimLiu-iOS
========
自己总结的iOS、mac开源项目及库。 github排名 [https://github.com/trending](https://github.com/trending),github搜索:[https://github.com/search](https://github.com/search)
### 目录
- [UI](#UI)
- [下拉刷新](#下拉刷新)
- [模糊效果](#模糊效果)
- [AutoLayout](#AutoLayout)
- [富文本](#富文本)
@steve228uk
steve228uk / SRCopyableLabel.swift
Last active February 26, 2022 21:08
Copyable UILabel
//
// SRCopyableLabel.swift
//
// Created by Stephen Radford on 08/09/2015.
// Copyright (c) 2015 Cocoon Development Ltd. All rights reserved.
//
import UIKit
class SRCopyableLabel: UILabel {
@perlmunger
perlmunger / String+Additions.swift
Last active February 22, 2017 01:06
Some helpful string extensions in Swift 2
extension String
{
var length: Int {
get {
return self.characters.count
}
}
func contains(s: String) -> Bool {
return self.rangeOfString(s) != nil ? true : false
@pxpgraphics
pxpgraphics / ArrayExtensions.swift
Created July 29, 2014 00:11
Swift extensions for common occurances
//
// ArrayExtensions.swift
// MyDailyGrind
//
// Created by Paris Pinkney on 7/8/14.
// Copyright (c) 2014 PXPGraphics. All rights reserved.
//
import Foundation
@HamptonMakes
HamptonMakes / RBResizer.swift
Created June 27, 2014 14:45
Swift Image Resizer
//
// RBResizer.swift
// Locker
//
// Created by Hampton Catlin on 6/20/14.
// Copyright (c) 2014 rarebit. All rights reserved.
//
import UIKit
@tomohisa
tomohisa / gist:2897676
Created June 8, 2012 19:20
Add and Remove ChildViewController
// add child view
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"];
[self addChildViewController:controller];
controller.view.frame = CGRectMake(0, 44, 320, 320);
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];
// remove child view
UIViewController *vc = [self.childViewControllers lastObject];
[vc.view removeFromSuperview];