Skip to content

Instantly share code, notes, and snippets.

View NickCalabs's full-sized avatar

Nick NickCalabs

View GitHub Profile
@NickCalabs
NickCalabs / keybase.md
Created May 14, 2017 03:48
Keybase Proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@NickCalabs
NickCalabs / AddEditViewController.m
Last active September 23, 2016 17:29
Date Picker not working as expected. DatePicker is being displayed as a popover. Will not update value randomly on the first change - cannot find rhyme or reason to when it does and doesn't call its method. Scenario 1: tap, choose time, update, value updates, update again, value updates again... repeat. Scenario 2: tap, choose time, update, valu…
@property (nonatomic, strong) UIViewController *datePickerController;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == kAddEditProductsTargetBatchTime) {
[self setupDatePickerWithIndexPath:indexPath];
}
}
- (void)setupDatePickerWithIndexPath:(NSIndexPath *)indexPath {
CGRect cellFrame = [self.tableView rectForRowAtIndexPath:indexPath];
import Foundation
enum Type{
case WorkFriend
case FamilyFriend
case CloseFriend
}
class Acquaintance{
let name: String