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
| https://swift.libhunt.com/sclalertview-swift-alternatives |
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
| https://drive.google.com/drive/folders/1-TWZDChwwzkiGzt78QlPZDzN-j82JfR6 |
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
| add new class | |
| public class TablessControl : TabControl { | |
| protected override void WndProc(ref Message m) { | |
| // Hide tabs by trapping the TCM_ADJUSTRECT message | |
| if (m.Msg == 0x1328 && !DesignMode) m.Result = (IntPtr)1; | |
| else base.WndProc(ref m); | |
| } | |
| } |
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
| https://www.youtube.com/watch?v=Xf5QDG5Y2TU |
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
| //Example is about: Delegate and Protocol to send data back to ViewController | |
| //let Suppose vew have two viewControllers are names 1: FirstVC 2: SecondVC | |
| // lets implment protcol and delegate to send data from SecondVC to FirstVC | |
| //In SecondVC.h file | |
| @protocol SecondVCDelegate <NSObject> | |
| @required | |
| - (void)dataFromController:(NSDictionary *)dic; | |
| @end |
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
| 2 http://www.ios-developer.net/iphone-ipad-programmer/development/. top ranking | |
| 1: https://docs.kii.com/en/guides/cloudsdk/ios/managing-data/json-document/get-key-value/ |
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
| //1: add this function in .m file | |
| -(NSMutableDictionary *)getCurrentDayMonthYear{ | |
| NSDate *now = [NSDate date]; | |
| // Specify which units we would like to use | |
| unsigned units = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay; | |
| NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; | |
| NSDateComponents *components = [calendar components:units fromDate:now]; | |
| NSNumber *year = [NSNumber numberWithInt:(int)[components year]]; |
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
| # Uncomment the next line to define a global platform for your project | |
| platform :ios, '9.0' | |
| target 'Corvis' do | |
| use_frameworks! | |
| pod 'Alamofire' | |
| pod 'AlamofireImage' | |
| pod 'SwiftyJSON' | |
| pod 'KVNProgress' |
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
| NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"REST URL PATH"]]; | |
| NSData *imageData = UIImageJPEGRepresentation(image, 1.0); | |
| [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData]; | |
| [request setHTTPShouldHandleCookies:NO]; | |
| [request setTimeoutInterval:60]; | |
| [request setHTTPMethod:@"POST"]; | |
| NSString *boundary = @"unique-consistent-string"; |
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)logoutButtonPressed | |
| { | |
| UIAlertController * alert = [UIAlertController | |
| alertControllerWithTitle:@"Logout" | |
| message:@"Are You Sure Want to Logout!" | |
| preferredStyle:UIAlertControllerStyleAlert]; | |
| //Add Buttons | |
| UIAlertAction* yesButton = [UIAlertAction |