1.注册微信开发账号,开通支付权限(注册谁都会了) 2.把三个文件拉进去 libWeChatSDK.a WXApi.h WXApiObject.h 3.添加URL Types 4.…
NSString *path = [[NSBundle mainBundle] pathForResource:@"3" ofType:@"gif&q…
- (IBAction)rotate:(id)sender { [UIView beginAnimations:@"View Filp" context:nil…
@import Darwin.sys.mount; int main(int argc, char * argv[]) { @autoreleasepool { struct st…
let attributedText = NSAttributedString(string: "道之不存,师之所存也", attributes: [NSStr…
- (IBAction)openFlash:(id)sender { AVCaptureDevice *device = [AVCaptureDevice defaultDevic…
github代码 前几天偶然发现一个app叫Blink,闲来无事,纯当练手,于是就尝试下自己实现它的功能. 页面都挺简单的 1.打开相机 – (void)openCam…
+ (void)createFolder:(NSString *)folderName { NSString *imageDir = [NSString stringWithFor…
UIStackView可以垂直或水平排布多个subview, 自动为每个subview创建和添加Auto Layout constraints. 1.添加subview let l…
CLGeocoder *myGeocoder = [[CLGeocoder alloc] init]; [myGeocoder geocodeAddressString:_sear…
CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = self.view.bounds; gr…
利用CIDetector来人脸识别 添加图片: UIImage* image = [UIImage imageNamed:@"face.jpg"]; …
xib中view得Mode属性中的 Scale To Fill