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
/* | |
* 发包开关 | |
*/ | |
#define kProductionEnv YES | |
#if !kProductionEnv | |
else if ([dict[@"type"] isEqualToString:@"mine_download"]) { | |
NSString *downloadUrl = @"https://www.pgyer.com/Mzjk"; | |
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:downloadUrl]]; |
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
guodongdeMacBook-Pro:header guodong$ strings TencentOpenAPI |grep ConnectionAppId | |
__ZN15CTXAppidConvert17IsConnectionAppIdEPKc | |
GetConnectionAppId | |
GetConnectionAppId |
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
NSDecimalNumber *subtotal = [NSDecimalNumber decimalNumberWithString:@"90.7146"]; | |
//保留小数点后两位 | |
NSDecimalNumberHandler*roundUp = [NSDecimalNumberHandler decimalNumberHandlerWithRoundingMode:NSRoundBankers scale:2 raiseOnExactness:NO raiseOnOverflow:NO raiseOnUnderflow:NO raiseOnDivideByZero:YES]; | |
NSDecimalNumber*total = [subtotal decimalNumberByRoundingAccordingToBehavior:roundUp]; | |
NSLog(@"total:%@",total); | |
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)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
semaphoreTest = dispatch_semaphore_create(2); | |
[NSThread detachNewThreadSelector:@selector(workThread) toTarget:self withObject:nil]; | |
[NSThread detachNewThreadSelector:@selector(workThread2) toTarget:self withObject:nil]; | |
[NSThread detachNewThreadSelector:@selector(workThread3) toTarget:self withObject:nil]; | |
UIButton *text = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 50, 30)]; | |
text.backgroundColor = [UIColor redColor]; | |
[text addTarget:self action:@selector(testSemaphore) forControlEvents:UIControlEventTouchUpInside]; |
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
http://torfinder.net/torrent/c6d96e1ae7f29f0175f551d9c2a3513a58ca8637 |
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
black edge text ios | |
http://stackoverflow.com/questions/1103148/how-do-i-make-uilabel-display-outlined-text | |
http://stackoverflow.com/questions/8224335/crop-uiimage-as-screen-size | |
截图 | |
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
https://mygod-go-home.googlecode.com/svn/trunk/ | |
http://bbs.csdn.net/topics/390269242?page=1#post-392825144 这里有下载的 |
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)paste:(id)sender | |
{ | |
UIPasteboard *board = [UIPasteboard generalPasteboard]; | |
NSArray *arr = board.strings; | |
NSLog(@"string:%@",[board.strings objectAtIndex:0]); | |
} | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; |
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
-(NSString *)checkVerifyCode:(NSString *)code | |
{ | |
code = [code stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
if([code isEqualToString:@""]) | |
{ | |
return @"验证码不能为空"; | |
} | |
NSString *verifyCodeRegex = [NSString stringWithFormat:@"([a-z,A-Z,0-9]{6})"]; | |
NSPredicate *verifyCodeTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", verifyCodeRegex]; |
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 <QuartzCore/QuartzCore.h> | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
-(void)go:(id)sender | |
{ | |
NSLog(@"GGGG"); |
NewerOlder