Skip to content

Instantly share code, notes, and snippets.

View MaximKeegan's full-sized avatar

Maxim Keegan MaximKeegan

  • Tochka Bank
  • Yekaterinburg, Russia
View GitHub Profile
[[[MKSessionManager sharedManager] activeSession] POST:@"controller/method" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
DLog(@"Resp %@", [task response]);
NSLog(@"JSON: %@", responseObject);
} failure:^(NSURLSessionDataTask *task, NSError *error) {
NSLog(@"Error: %@", error);
}];
//
// JSONValueTransformer+LocationTransformer.h
// Geomonopoly
//
// Created by Maxim Keegan on 26/08/14.
//
#import "JSONValueTransformer.h"
@interface JSONValueTransformer (LocationTransformer)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7e2fae00 of class UICollectionView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x7c743ff0> (
<NSKeyValueObservance 0x7c7416b0: Observer: 0x0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x7c203280>
<NSKeyValueObservance 0x7c7416f0: Observer: 0x0, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x7c203990>
)'
*** First throw call stack:
(
0 CoreFoundation 0x0475f946 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x043e4a97 objc_exception_throw + 44
2 CoreFoundation 0x0475f86d +[NSException raise:format:] + 141
3 Foundation 0x023136d4 NSKVODeallocate + 379
//
// RoundedCornersTextView.h
//
// Created by Maxim Keegan on 03.06.15.
// Copyright (c) 2015 Keegan. All rights reserved.
//
#import <UIKit/UIKit.h>
IB_DESIGNABLE