Skip to content

Instantly share code, notes, and snippets.

View vimask's full-sized avatar

Vinh Vo vimask

  • Hochiminh, Vietnam
  • 19:48 (UTC +07:00)
View GitHub Profile
@vimask
vimask / NotificationHandler.swift
Created December 29, 2022 07:24
manage NotificationCenter with Enum
//
// NotificationHandler.swift
// vinh
//
// Created by vinh vo on 7/20/17.
// Copyright © 2017. All rights reserved.
//
import UIKit
@vimask
vimask / keybase.md
Last active September 11, 2019 03:45

Keybase proof

I hereby claim:

  • I am vimask on github.
  • I am vimask (https://keybase.io/vimask) on keybase.
  • I have a public key ASBYmM4YW0FbBCrkEAUp6i2G6poR5IfM7vhkdhvrsMCoago

To claim this, I am signing this object:

// FooTwoViewController.swift
// Swift2DelegateFoo
//
// Created by Steven Lipton on 6/29/14.
// Copyright (c) 2014 Steven Lipton. All rights reserved.
// updated 9/17/15 SJL for Swift 2.0
import UIKit
protocol FooTwoViewControllerDelegate{
//
// ViewController.swift
// Swift2DelegateFoo
//
// Created by Steven Lipton on 6/29/14.
// Copyright (c) 2014 Steven Lipton. All rights reserved.
// Updated 9/17/15 SJL for Swift 2.0
import UIKit
#pragma mark -
#pragma mark Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
return 0;
}