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
// | |
// NSObject+Association.h | |
// | |
// Created by Maciej Swic on 03/12/13. | |
// Released under the MIT license. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSObject (Association) |
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
// | |
// CommonMacro.h | |
// | |
// | |
// Created by Haven on 26/9/13. | |
// Copyright (c) 2013 LF. All rights reserved. | |
// | |
#import <CoreTelephony/CTTelephonyNetworkInfo.h> | |
#import <CoreTelephony/CTCarrier.h> |
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 NSString (Extensions) | |
+ (NSString *)stringToSha1:(NSString *)str; | |
- (NSNumber*)stringToNSNumber; | |
- (BOOL)isEmpty; | |
- (BOOL)stringContainsSubString:(NSString *)subString; | |
- (NSString *)stringByReplacingStringsFromDictionary:(NSDictionary *)dict; |
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
/* | |
Before: | |
CGRect frame = myView.frame; | |
frame.origin.x = newX; | |
myView.frame = frame; | |
After: | |
myView.x = newX; | |