This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * The MIT License | |
| * | |
| * Copyright (c) 2011 Paul Solt, PaulSolt@gmail.com | |
| * | |
| * https://github.com/PaulSolt/UIImage-Conversion/blob/master/MITLicense.txt | |
| * | |
| */ | |
| #import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //: Table of contents generator for Markdown using {{TOC}} for text replacement and link insertion | |
| //: Fixed the bug with {{TOC}} on second pass, added some more logic to prevent losing whitespace, and making | |
| //: non-unicode links from the TOC (good start prototyping and working with strings, now I need to cleanup and do TDD + Mac UI) | |
| //: I plan to wrap it up more and fix the bugs, so that I can use it as a Mac app, but this was my starting point | |
| //: with lots of todos | |
| //: Paul Solt (Swift 4.2 in Xcode 10) | |
| //: 7-12-18 | |
| import Cocoa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // SwiftButton | |
| // | |
| // Created by Paul Solt on 7/21/15. | |
| // Copyright (c) 2015 Paul Solt. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AECocos2D.h | |
| // CocosUIKitTest | |
| // | |
| // Created by Paul Solt on 7/4/13. | |
| // Copyright (c) 2014 Paul Solt. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
| { | |
| self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
| if (self) { | |
| self.gameState = GameStateMenu; | |
| self.definesPresentationContext = NO; | |
| self.modalPresentationStyle = UIModalPresentationFormSheet; | |
| self.menuScreenViewController = [[MenuScreenViewController alloc] init]; | |
| self.menuScreenViewController.definesPresentationContext = YES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @class MatBorder; | |
| @class FractionLabel; | |
| @interface ViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate, | |
| MeasurementStepperDelegate, | |
| UnitSliderSquareDelegate, | |
| MatViewDelegate, | |
| CropViewDelegate> { | |
| CropViewController *_cropViewController; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // main.m | |
| // FindWords | |
| // | |
| // Created by Paul Solt on 5/5/13. | |
| // Copyright (c) 2013 Paul Solt. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ViewController.m | |
| // Use at top | |
| #import <QuartzCore/QuartzCore.h> | |
| //... | |
| // Add below the @implementation | |
| - (void)loadView { | |
| [super loadView]; // important to have this call, otherwise things might not load |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)loadView { | |
| [super loadView]; | |
| NSLog(@"load view"); | |
| self.starButton.layer.cornerRadius = 20; // this value vary as per your desire | |
| self.starButton.clipsToBounds = YES; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * The MIT License | |
| * | |
| * Copyright (c) 2011 Paul Solt, PaulSolt@gmail.com | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
NewerOlder