自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (2)
  • 收藏
  • 关注

原创 iOS开发跳转AppStore、拨打电话

跳转AppStore @”*******” 为你要跳转的APPID NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", @"*******"]; [[UIApplication sharedApplication] openURL:[NSURL URLWit

2016-12-09 14:11:05 472

原创 IOS开发—修改状态栏颜色

在info.plist 里添加两个对象 1、View controller-based status bar appearance == NO 2、UIStatusBarStyle = UIStatusBarStyleLightContent(白) 默认是黑色 UIStatusBarStyleDefault ;

2016-06-29 15:28:28 458

原创 iOS 开发— JSONS字符串转字典

我是封装在NSString的类别里了, +(NSDictionary *)parseJSONStringToNSDictionary:(NSString *)JSONString { NSData *JSONData = [JSONString dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary *responseJSON

2016-04-13 13:37:52 428

原创 iOS自定义简单的搜索框

.m#import "NewSearchBar.h"#import "UIColor+AddColor.h"@implementation NewSearchBar- (instancetype)initWithFrame:(CGRect)frame{ self = [ super initWithFrame:frame]; if (self) {

2015-12-29 10:41:31 742

转载 iOS开发之获取图片的主色调

#import "UIImage+GetMainColorFromImage.h"@implementation UIImage (GetMainColorFromImage)-(UIColor*)mostColor{ #if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1 int bitmapInfo = kCGBi

2015-12-18 10:37:16 2491

原创 iOS开发之微信支付

微信支付官方文档 https://pay.weixin.qq.com/wiki/doc/api/app.php?chapter=8_1 并且在上面下载demo 和要用的类库 。微信的demo上有很多的功能 , 看上去可能有点乱 ,需要耐心一点 。如果你在项目中做了ShearSDK的微信分享,那么你就有把原有的WXApi.h ,WXApiObject.h , libWetChatSDK这三个文件删除

2015-08-17 11:46:47 393

转载 iOS开发之判断手机号

//正则判断手机号码格式+ (BOOL)validatePhone:(NSString *)phone{       /**        * 手机号码        * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188        * 联通:130,131,132,152,155,156,185,186

2015-08-07 16:43:35 357

原创 iOS 开发之UITableView避免重用

UITableView避免重用

2015-08-06 09:24:09 436

转载 iOS开发之倒计时

NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];//创建NSTimer- (void)timerFireMethod:(NSTimer *)timer{NSCalendar

2015-08-05 15:36:38 472

原创 iOS开发之时间戳的转化

在开发过程中 , 后台发挥的时间相关的参数很多都是时间戳,要把时间戳转换为字符串。 首先要创建一个NSDateFormatter的对象。 NSDateFormatter* formatter = [[NSDateFormatter alloc] init] ;[formatter setDateStyle:NSDateFormatterMediumStyle];

2015-08-05 15:17:28 365

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除