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
exchangeFilters.foldRight(IO.pure(exchanges)) { (filter, exchange) => | |
for { | |
exchange <- exchange | |
result <- filter.processResult(exchange, productDetails) | |
} yield result | |
} |
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
@interface TestClass (ParseObject) | |
@property (nonatomic) NSObject *dynamicProperty; | |
@end | |
@implementation TestClass (ParseObject) | |
@dynamic dynamicProperty; |
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
#include <objc/runtime.h> | |
static char dynamicPropertyKey; | |
@interface TestClass (ParseObject) | |
@property (nonatomic) NSObject *dynamicProperty; | |
@end |
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
@interface SimpleHookExampleClass : NSObject | |
@property (nonatomic) NSUInteger state; | |
@end | |
@implementation SimpleHookExampleClass | |
- (NSUInteger)mutStateOnArg:(NSUInteger)arg | |
{ |
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
//было | |
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
{ | |
if ([segue.identifier isEqualToString:@"SegueFromRegistrationToCreateAccount"]) { | |
CreateAccountVC *vc = segue.destinationViewController; | |
__weak RegistrationFirstVC *weakSelf = self; | |
vc.onCompleteDialogBlock = ^(id result, NSError *error, BOOL isCanceled) { | |
[weakSelf.navigationController popViewControllerAnimated:NO]; |