06 2022 档案

摘要:#import "DCWKViewController.h" #import <WebKit/WebKit.h> #define URL_define @"URL" @interface DCWKViewController ()<WKUIDelegate,WKNavigationDelegate, 阅读全文
posted @ 2022-06-21 15:11 LongYP1 阅读(239) 评论(0) 推荐(0) 编辑
摘要:#pragma TZImagePickerController - (void)setTZimageView { TZImagePickerController *imagePC = [[TZImagePickerController alloc]initWithMaxImagesCount:1 d 阅读全文
posted @ 2022-06-21 14:45 LongYP1 阅读(1190) 评论(0) 推荐(0) 编辑
摘要:<UITableViewDelegate,UITableViewDataSource> @property (nonatomic, retain) UITableView *tableView; @property (nonatomic, strong) NSMutableArray *dataSo 阅读全文
posted @ 2022-06-21 14:44 LongYP1 阅读(108) 评论(0) 推荐(0) 编辑
摘要:NSString *dataString = response[@"model"][@"3"]; NSData* data = [dataString dataUsingEncoding:NSUTF8StringEncoding]; self.tabArray = [NSJSONSerializat 阅读全文
posted @ 2022-06-21 14:39 LongYP1 阅读(201) 评论(0) 推荐(0) 编辑
摘要:- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { if (jsonString == nil) { return nil; } NSData *jsonData = [jsonString dataUsingEnc 阅读全文
posted @ 2022-06-21 14:37 LongYP1 阅读(483) 评论(0) 推荐(0) 编辑
摘要://压缩图片方法 - (UIImage*)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize{ UIGraphicsBeginImageContext(newSize); [image drawInRect:CGRect 阅读全文
posted @ 2022-06-21 14:35 LongYP1 阅读(49) 评论(0) 推荐(0) 编辑
摘要:// 宽高 // Frame #define SCREEN_FRAME ([UIScreen mainScreen].applicationFrame) // 宽度 #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width) // 高 阅读全文
posted @ 2022-06-21 14:34 LongYP1 阅读(304) 评论(0) 推荐(0) 编辑
摘要:-(float)heightForString:(NSString *)value fontSize:(float)fontSize andWidth:(float)width { float height = [[NSString stringWithFormat:@"%@\n",value] b 阅读全文
posted @ 2022-06-21 14:32 LongYP1 阅读(222) 评论(0) 推荐(0) 编辑
摘要:#import <UIKit/UIKit.h> #import "MineHeadModel.h" NS_ASSUME_NONNULL_BEGIN @protocol HeadViewDelegate <NSObject> - (void)headViewButtonClick:(NSInteger 阅读全文
posted @ 2022-06-21 14:30 LongYP1 阅读(21) 评论(0) 推荐(0) 编辑
摘要:+(void)buttonAnimationClick:(UIButton*)button{ button.transform = CGAffineTransformIdentity; [UIView animateKeyframesWithDuration:0.5 delay:0 options: 阅读全文
posted @ 2022-06-21 14:29 LongYP1 阅读(346) 评论(0) 推荐(0) 编辑