文章分类 -  ios之经典

摘要:生成图片 #import "UIImage+CBImage.h" @implementation UIImage (CBImage) + (UIImage *)imageWithColor:(UIColor *) color { CGRect rect = CGRectMake(0.0f,0.0f, 阅读全文
posted @ 2019-01-04 14:03 sundaysios 阅读(168) 评论(0) 推荐(0) 编辑
摘要:// // BaseViewController.h // CaiBao // // Created by 财富万方 on 16/2/25. // Copyright © 2016年 91cb. All rights reserved. // #import <UIKit/UIKit.h> @int 阅读全文
posted @ 2019-01-03 10:25 sundaysios 阅读(138) 评论(0) 推荐(0) 编辑
摘要:电话 NSURL *url = [NSURL URLWithString:@"tel://10010"]; // [[UIApplication sharedApplication] openURL:url]; // NSURL *url = [NSURL URLWithString:@"telpr 阅读全文
posted @ 2018-10-17 09:09 sundaysios 阅读(104) 评论(0) 推荐(0) 编辑
摘要:@interface MJViewController () @property (nonatomic, strong) UIWebView *webView; @end @implementation MJViewController - (UIWebView *)webView { if (!_ 阅读全文
posted @ 2018-10-16 22:52 sundaysios 阅读(168) 评论(0) 推荐(0) 编辑
摘要:// // MJTitleButton.m // 00-ItcastLottery // // Created by apple on 14-4-16. // Copyright (c) 2014年 itcast. All rights reserved. // #import "MJTitleBu 阅读全文
posted @ 2018-10-16 22:10 sundaysios 阅读(71) 评论(0) 推荐(0) 编辑
摘要:/** * 返回一张可以随意拉伸不变形的图片 * * @param name 图片名字 */ + (UIImage *)resizableImage:(NSString *)name { UIImage *normal = [UIImage imageNamed:name]; CGFloat w = 阅读全文
posted @ 2018-10-16 22:09 sundaysios 阅读(98) 评论(0) 推荐(0) 编辑
摘要:// // DemoObj.m // 05.单例 // // Created by apple on 14-4-23. // Copyright (c) 2014年 itcast. All rights reserved. // #import "DemoObj.h" @implementation 阅读全文
posted @ 2018-10-16 21:51 sundaysios 阅读(100) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示