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
https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html |
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
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFiledEditChanged:) | |
name:@"UITextFieldTextDidChangeNotification" | |
object:self.bBankCardbyName]; | |
-(void)textFiledEditChanged:(NSNotification *)obj{ | |
UITextField *textField = (UITextField *)obj.object; | |
NSLog(@"textField:%@",textField.text); | |
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://stablekernel.com/blog/view-controller-containers-part-ii/ |
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
IPA 重签名 | |
Step1 : 解压IPA | |
unzip MYAPP.ipa | |
Step2: 删除旧的代码签名 | |
rm -rf Payload/ MYAPP.app/_CodeSignature | |
Step3: 更换证书 | |
cp MyEnterprise.mobileprovision Payload/ MYAPP.app/embedded.mobileprovision | |
Step4: 重签名 |
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)scrollViewDidScroll:(UIScrollView *)scrollView { | |
if (scrollView == self.cardTableView) | |
{ | |
CGFloat sectionHeaderHeight = 80; | |
if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) { | |
scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0); | |
} else if (scrollView.contentOffset.y>=sectionHeaderHeight) { | |
scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0); | |
} | |
} |
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 |
NewerOlder