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
CATransition *animation = [CATransition animation]; | |
animation.duration = 2.0; | |
animation.type = @"cube"; | |
animation.subtype = kCATransitionFromRight; | |
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
[sender removeFromSuperview]; | |
if ([sender isEqual:self.button1]) { | |
[self.animationView addSubview:self.button2]; | |
} else { | |
[self.animationView addSubview:self.button1]; |
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
#1.遍历某个路径的子目录 | |
#2.按行读取头文件和源文件 | |
#3.找到对应关系行 | |
#4.判断是否在注释范围内 | |
#5.分析并存储关系 | |
import os, os.path, re, sys | |
_g_relations = {} | |
_g_graphRelations = {} |
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 handleException(NSException *exception) { | |
NSString *exceptionString = [NSString stringWithFormat:@"NSException : %@", [exception description]]; | |
NSArray *arrsy = [exception callStackSymbols]; | |
NSLog(@"//////////////////////////////////////////////////////////////////////////////////////////"); | |
NSLog (@"%@ : %@", exceptionString, arrsy); | |
NSLog(@"//////////////////////////////////////////////////////////////////////////////////////////"); | |
} |
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
AFHTTPClient *post = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:@"https://api.github.com"]]; | |
[post setAuthorizationHeaderWithUsername:@"" password:@""]; | |
post.parameterEncoding = AFJSONParameterEncoding; | |
[post postPath:@"authorizations" | |
parameters:@{@"Scopes":@[@"public_repo",@"repo"],@"note":@"admin script"} | |
success:^(AFHTTPRequestOperation *operation, id responseObject) { | |
NSString *responseStr = [[NSString alloc] initWithData:responseObject encoding:4]; | |
NSLog(@"success : %@", responseStr); | |
} | |
failure:^(AFHTTPRequestOperation *operation, NSError *error) { |
NewerOlder