This file contains 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
SEL action = NSSelectorFromString(@"handleNavigationTransition:"); | |
UIScreenEdgePanGestureRecognizer *edgePanGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self.navigationController.interactivePopGestureRecognizer.delegate action:action]; | |
edgePanGesture.edges = UIRectEdgeLeft; | |
edgePanGesture.delegate = self; | |
[self.view addGestureRecognizer:edgePanGesture]; |
This file contains 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
// mystrong | |
@property(nonatomic, strong)<#propetyclass#> *<#propertyname#>; | |
// mycopy | |
@property(nonatomic, copy)<#propetyclass#> *<#propertyname#>; | |
// myassign | |
@property(nonatomic, assign)<#propetyclass#> *<#propertyname#>; | |
// myweak | |
@property(nonatomic, weak)id<<#protocalname#>> <#propertyname#>; | |
// mylazyload |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>downloadables</key> | |
<array> | |
<!-- These first dicts are to reference the docsets that come installed with Xcode --> | |
<dict> | |
<key>identifier</key> | |
<string>com.apple.adc.documentation.AppleXcode.DeveloperTools</string> |
This file contains 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
[ | |
{ | |
"name": "ABFullScrollViewController", | |
"url": "https://github.com/andresbrun/ABFullScrollViewController.git" | |
}, | |
{ | |
"name": "AFBlurSegue", | |
"url": "https://github.com/AlvaroFranco/AFBlurSegue.git" | |
}, | |
{ |
This file contains 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 <MobileCoreServices/MobileCoreServices.h> | |
@interface <#XX#>() <UIImagePickerControllerDelegate, UINavigationControllerDelegate> | |
@property (nonatomic, strong) UIImagePickerController *imagePicker; | |
@property (nonatomic, strong) UIImagePickerController *cameraPicker; | |
#pragma mark - UIImagePickerControllerDelegate | |
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info { | |
NSString *mediaType = info[UIImagePickerControllerMediaType]; |
This file contains 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
//Share Image or Video | |
- (void)shareToFriends:(UIImage *)image videoPath:(NSString *)path | |
{ | |
[GZToast hideToast]; | |
NSArray *objectsToShare; | |
if (image) { | |
objectsToShare = @[image]; | |
}else if(path){ | |
NSURL*urlToShare= [NSURL fileURLWithPath:path]; | |
objectsToShare = @[urlToShare]; |