Skip to content

Instantly share code, notes, and snippets.

import UIKit
import PlaygroundSupport
class TestViewController : UIViewController {
let btn: UIButton = {
let b = UIButton()
b.translatesAutoresizingMaskIntoConstraints = false
b.setTitle("Tap Me", for: .normal)
//
// AutoSizeTableViewCell.h
// OCVeryTemp
//
// Created by Don Mag on 2/19/18.
//
#import <UIKit/UIKit.h>
@interface AutoSizeTableViewCell : UITableViewCell
//
// WithAlertTableViewController.m
// OCVeryTemp
//
// Created by Don Mag on 2/19/18.
//
#import "WithAlertTableViewController.h"
@interface WithAlertTableViewController ()
//
// FirstTabKBViewController.m
// OCVeryTemp
//
// Created by Don Mag on 2/19/18.
//
#import "FirstTabKBViewController.h"
@interface FirstTabKBViewController ()
class C2ViewController: UIViewController {
var myCustomAlertView = CustomAlertView()
override func viewDidLoad() {
super.viewDidLoad()
if var topController = UIApplication.shared.delegate?.window??.rootViewController {
while let presentedViewController = topController.presentedViewController {
//
// Crash1hdViewController.swift
// temp
//
// Created by Don Mag on 2/15/18.
// Copyright © 2018 DonMag. All rights reserved.
//
import UIKit
import Foundation
class Foo {
var test = ""
}
class Bar {
var test = ""
}
//
// MyAlertFunc.swift
// temp
//
// Created by Don Mag on 2/9/18.
//
import UIKit
import UIKit
import PlaygroundSupport
class TestViewController : UIViewController {
let btn: UIButton = {
let b = UIButton()
b.translatesAutoresizingMaskIntoConstraints = false
b.setTitle("Tap Me", for: .normal)
b.backgroundColor = .red
import UIKit
import PlaygroundSupport
class MyView: UIView {
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
var f = bounds
f.origin.y -= 20
return f.contains(point)