自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 本地通知

- (void)scheduleLocalNotification {                  // 初始化本地通知         UILocalNotification *localNotification = [[UILocalNotification alloc] init];                  // 通知触发时间      

2016-07-26 19:50:14 230

原创 滑动scrollView的时候键盘下去

@property(nonatomic) UIScrollViewKeyboardDismissMode keyboardDismissMode; 设置键盘消失的模式,

2016-07-26 16:35:25 1574

原创 判断应用程序是否在前台

UIApplicationState state = [UIApplication sharedApplication].applicationState;     BOOL result = (state == UIApplicationStateActive);

2016-07-26 13:37:21 313

原创 获取启动图片

CGSize viewSize  = self.window.bounds.size;     NSString * viewOrientation = @"Portrait";     NSString * launchImage = nil;     NSArray * imageDict = [[[NSBundle mainBundle] infoDictionar

2016-07-22 12:44:45 464

原创 消息角标添加小红点

//                     UIImageView *dotImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"drop"]]; //                     dotImage.backgroundColor = [UIColor clearColor]; //      

2016-07-22 09:48:37 1504

原创 如何使app 直接关掉,不在进入后台

UIApplicationExitsOnSuspend (Boolean - iOS) specifies that the application should be terminated rather than moved to the background when it is quit. Applications linked against iPhone SDK 4.0 or lat

2016-07-21 13:14:08 806

转载 使用coding fatal: remote origin already http://blog.csdn.net/dengjianqiang2011/article/details/926043

如果输入$ Git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git      提示出错信息:fatal: remote origin already exists.     解决办法如下:     1、先输入$ git remote rm origin     2、再输入$ git

2016-07-19 17:13:53 403

原创 iOS开发之应用内检测手机锁屏,解锁状态

1. 程序在前台,这种比较简单。直接使用Darwin层的通知就可以了: #import #define NotificationLock CFSTR("com.apple.springboard.lockcomplete") #define NotificationChange CFSTR("com.apple.springboard.lockstate") #defin

2016-07-18 15:23:47 1053

原创 tableView 的headerView下拉缩放

//    CGFloat offsetY = scrollView.contentOffset.y; //    CGFloat scale = 1-(offsetY/70); //    scale = (scale >1)? scale : 1; //    self.tableHeadView.transform = CGAffineTransformMakeScale(

2016-07-18 13:00:05 324

原创 手机号中间几位为*号

NSString *originTel = @"13722223333"; NSString *tel = [originTel stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"]; NSLog(@"tel:%@",tel); //输出 tel:137****3333

2016-07-12 22:54:51 358

原创 提交APP store 报错

1,第一个报错 可以搜一下项目中是不是有多的info.plist 2. 第二个,icon图片要在工程中也放置一份

2016-07-12 14:32:02 258

原创 MJRefresh

/ *        MJRefreshComponent -------刷​​新控件的基类                MJRefreshHeader ----------基础的下拉刷新控件        MJRefreshStateHeader -----带有状态文字的下拉刷新控件        MJRefreshNormalHeader ----默认的下拉刷新控件       

2016-07-09 12:03:43 240

原创 APP跳到AppStore 下载的实现

NSString *iTunesString = [NSString stringWithFormat:@"http://itunes.apple.com/app/id%d",1099436366];     NSURL *iTunesURL = [NSURL URLWithString:iTunesString];     [[UIApplication sharedApplicat

2016-07-08 08:29:53 437

转载 WiFi时,显示图片高清图;网络状态为蜂窝移动网络时,显示图片缩略图http://gold.xitu.io/entry/57285c5e2e958a0068db2f9e

原文地址   由于要监听网络状态,在这里笔者推荐使用AFNetWorking。 1)在GitHub或者利用cocoaPod给项目导入第三方框架AFNetWorking。 2)在AppDelegate.m文件中的application:didFinishLaunchingWithOptions:方法中监听网络状态。 // AppDelegate.m 文件中- (BOO

2016-07-06 21:47:29 850

原创 判断手机app是否允许定位

CLAuthorizationStatus status = [CLLocationManager authorizationStatus];     if (kCLAuthorizationStatusDenied == status || kCLAuthorizationStatusRestricted == status) {         ShowToastWithTex

2016-07-06 17:33:00 1387

原创 图片拉大后抗拒尺

设置layer 的一个属性 一、 这个简单的键-值对添加到您的Info.plist:UIViewEdgeAntialiasing设置为YES。但是这样容易出现性能问题。   二、  对单个 Layer 开启抗锯齿的方法, imageView.layer.allowsEdgeAntialiasing = YES;  //>=ios7

2016-07-05 14:37:46 372

原创 使用UISearchController的时候 cellForRow 崩溃

第一种解决办法: 要是使用这样注册cell    [_table registerNib:[UINib nibWithNibName:@"MiYunMyFocousCell" bundle:nil] forCellReuseIdentifier:@"MiYunMyFocousCell"];   You need to register the cells on t

2016-07-04 21:03:24 662

原创 按下home键关闭程序

Set the UIApplicationExitsOnSuspend key in your app's Info.plist to YES. This will make the app quit when you press the home button, instead of being backgrounded

2016-07-04 18:04:27 520

原创 iOS 多个tabBar之间跳转的问题

1.点击按钮跳转的时候         [self.navigationController.navigationBar setHidden:YES];         [self.tabBarController.tabBar setHidden:YES];         [self.navigationController pushViewController:t

2016-07-01 13:34:58 2482

空空如也

空空如也

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

TA关注的人

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