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
| //Delete main storyboard | |
| //Delete it from target - General - Deployment info - Main interface | |
| //Delete derived data | |
| // In appDelegate | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
| window = UIWindow(frame: UIScreen.main.bounds) | |
| let homeViewController = ViewController() | |
| window!.rootViewController = homeViewController | |
| window!.makeKeyAndVisible() |
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
| //To create a new project with CocoaPods, follow these simple steps: | |
| //Create a new project in Xcode as you would normally. | |
| //Open a terminal window, and $ cd into your project directory. | |
| /Create a Podfile. This can be done by running $ pod init. | |
| pod init | |
| //In podfile |
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
| #define FILE_PASSWORD_BYTES_LENGTH 16 | |
| NSString *const MAIN_ENCRYPTION_SERVICE_NAME = @"com.yourDomain.Keychain.MainEncryption"; | |
| #pragma mark - Stored files | |
| - (NSString *)writeDataToEncryptedFile:(NSData *)theData withName:(NSString *)theName forAccount:(NSString*)account { | |
| NSData *readyToStoreData = [self encryptData:theData withPassword:[self getPasswordForAccount:account]]; |
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
| #import <Foundation/Foundation.h> | |
| @interface NSObject (Swizzling) | |
| + (void)swizzleInstanceSelector:(SEL)originalSelector | |
| withNewSelector:(SEL)newSelector; | |
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
| //http://www.innofied.com/implementing-image-masking-in-ios/ | |
| - (UIImage*) maskImage:(UIImage *) image withMask:(UIImage *) mask | |
| { | |
| CGImageRef imageReference = image.CGImage; | |
| CGImageRef maskReference = mask.CGImage; | |
| CGImageRef imageMask = CGImageMaskCreate(CGImageGetWidth(maskReference), | |
| CGImageGetHeight(maskReference), | |
| CGImageGetBitsPerComponent(maskReference), |
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
| //Init a class model from a NSDictionary | |
| - (id)initWithDictionary:(NSDictionary*)dictionary { | |
| if(!dictionary || [dictionary isKindOfClass:[NSNull class]]) { | |
| return nil; | |
| } | |
| self = [super init]; | |
| if(self) { | |
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
| /************************/ | |
| //Optional Reference link | |
| //https://medium.com/@musawiralishah/creating-custom-uitableviewcell-using-nib-xib-files-in-xcode-9bee5824e722 | |
| /************************/ | |
| //Add an empty view to your project | |
| //New file -> iOS / User Interface -> Empty | |
| //Drag a UITableViewCell onto it and fix it how you want | |
| //Make a custom UITableViewCell class |
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
| Το καλύτερο είναι πάντα το tutorials point | |
| http://www.tutorialspoint.com/csharp/ | |
| Μάλλον δείτε καλύτερα το menu “C# Advanced Tutorial” αφού τα άλλα τα ξέρετε. | |
| Αν δεν καταλάβετε τα events (αν χρειαστούν) δείτε εδώ: | |
| http://www.codeproject.com/Articles/11541/The-Simplest-C-Events-Example-Imaginable | |
| Για τα xml (serialisation/deserialisation): | |
| http://www.codeproject.com/Articles/483055/XML-Serialization-and-Deserialization-Part |
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) initializeTextFieldInputView { | |
| UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectZero]; | |
| datePicker.datePickerMode = UIDatePickerModeDate; | |
| datePicker.minuteInterval = 5; | |
| datePicker.backgroundColor = [UIColor whiteColor]; | |
| [datePicker addTarget:self action:@selector(dateUpdated:) forControlEvents:UIControlEventValueChanged]; | |
| self.textField.inputView = datePicker; | |
| //Add done button |
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
| function Employee() { | |
| this.name = ""; | |
| this.dept = "general"; | |
| } | |
| function WorkerBee() { | |
| Employee.call(this); | |
| this.projects = []; | |