自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(57)
  • 资源 (3)
  • 收藏
  • 关注

原创 Xcode真机调试支持包路径

将支持包复制到:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

2017-10-31 16:28:30 4515

原创 iOS开发tableViewcell中的textField输入中文时向下偏移的问题

之前项目中从未遇到过这个问题,最近遇到了很是头疼,找了2天没找着原因,到现在也不知道为啥。。。我只是设置了一下textfield的clearButtonMode,就莫名其妙的好了。。。textField.clearButtonMode = UITextFieldViewModeWhileEditing;

2017-09-26 16:15:55 390

转载 SDWebImage支持URL不变时更新图片内容

SDWebImage支持URL不变时更新图片内容原文地址:http://www.cnblogs.com/renshengruozhiruchujian/p/5886382.htmlSDWebImage在iOS项目中是一个很常用的开源库,而且众所周知的是,它是基于URL作为Key来实现图片缓存机制的。在90%左右的情况下,图片与URL是一一对应的,即使服务器修改了图片也会相应

2017-09-19 11:07:40 403

原创 iOS 跳转到App Store特定应用界面

获取应用在App Store的下载地址的方式:1、电脑打开iTunes2、搜索应用程序3、点击应用程序下Get按钮右侧下拉按钮,选择Copy URL4、将URL中的https://改为:itms-apps://5、实现代码:[[UIApplication sharedApplication] openURL:[NSURL URLWithStrin

2017-07-18 11:51:30 522

原创 虚拟机识别iPhone,Xcode却不识别问题

1、在MacOSX未开启之前,选择虚拟机菜单:虚拟机 -> 设置 -> USB控制器 -> USB兼容性 -> USB 2.02、启动MacOSX

2017-07-18 11:39:36 1313

原创 iOS 融云获取token

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; NSDictionary *dict = @{@"userId":@"11", @"name":@"zs", @"portraitUri":@"http://www.baidu.com/a.png"}; NSString *timestamp = [[NS

2017-07-17 16:02:39 682

原创 pod search 出错

[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`1、rm ~/Library/Caches/CocoaPods/search_index.json2、pod search AFNetworking

2017-07-07 14:46:54 410

原创 UITabBar自定义,顶部曲线,中间按钮突出(OC)

// TabLineView.h#import @interface TabLineView : UIView@end// TabLineView.m#import "TabLineView.h"@interface TabLineView ()@property (nonatomic,assign) CGFloat lineY;@property (nonato

2017-04-12 11:15:28 646

原创 iOS变长参数

[self testWithTitles:@"123",@"456",nil];- (void)testWithTitles:(nullable NSString *)titles, ...{ va_list argsList; va_start(argsList, titles); while(titles != nil) { BDLog(

2017-03-20 15:06:24 226

转载 iOS 根据 crash 崩溃 报告的内存地址定位到代码位置

1,首先要有崩溃的app上传时候的打包文件,也就是 .xcarchive文件。这个文件可以通过以下方法找到,点击Xcode右上角的Organizer,然后点击Organizer上面的Archives,就可以看到下面有个列表,列出的都是打包的文件,其中一个就是你打包时候留下的,找到它。找到后点击右键显示包内容,看到dSYMs文件和Products文件夹 。先打开dSYMs文件夹,看到yourapp.

2017-02-27 17:49:49 738

原创 iOS加急审核

1、在iTunesconnect页面,点击右上角的“?”图标,在弹出菜单中选择“联系我们”:2、在Contact Us页面,选择“App Review” —> “App Store Review” —>” Request Expedited Review”:3、在表格里填写相关信息,其中最重要的写你需要加急审核的原因。一般是写要赶某个重大节日运营节点,或者紧急修复某个严重的

2016-12-15 17:26:47 231

原创 Mac OS X上IntelliJ IDEA 13与Tomcat 8的Java Web开发环境搭建

http://www.cnblogs.com/guogangj/p/3725371.html#download-something

2016-12-06 14:24:30 303

原创 AppStore审核指南

http://blog.csdn.net/sunraining1/article/details/50905714

2016-12-06 09:46:23 189

原创 ios IPv6环境测试

链接:http://www.cocoachina.com/ios/20160525/16431.html

2016-12-01 11:48:56 587

原创 UISearchBar输入框背景色

UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(10, 22, kScreenW - 10, 30)]; searchBar.tintColor = [UIColor darkGrayColor]; searchBar.barTintColor = [UIColor whiteColor]

2016-11-18 14:27:22 1998

原创 tableview某一个section实现多选

viewcontroller.m#import "ViewController.h"#import "SectionOneCell.h"#import "SectionTwoCell.h"@interface ViewController () @property (nonatomic, assign) NSInteger currentEditingStyle;@prope

2016-11-15 11:00:56 1370

原创 修改状态栏以及navgationController标题颜色

1、info.plist文件中添加字段:View controller-based status bar appearance ——————> NO2、设置状态栏字体 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; [viewcontroller setNeed

2016-10-31 11:44:30 235

原创 NSDate时区转换

// 直接[NSDate date]获取的日期比当前日期少8小时NSTimeZone *timeZone = [[NSTimeZone alloc] init];timeZone = [NSTimeZone systemTimeZone];//获取本地时区NSTimeInterval interval = [timeZone secondsFromGMT];NSDate *nowDate

2016-10-28 14:03:22 275

原创 iOS10系统安装新软件后无法联网的解决办法

原文地址:http://jingyan.baidu.com/article/2c8c281da290a20008252a9a.html

2016-10-26 16:52:47 1648

原创 限制UITextFeild字数

// 实现UITextfield的代理方法- (void)textViewDidChange:(UITextView *)textView{ NSInteger number = [textView.text length]; if (number > 10) { UIAlertView *tipAlert = [[UIAlertView alloc]

2016-10-26 16:32:39 173

原创 友盟微信、QQ分享 --- 分享纯文本

1、Target --> Info --> URL Type:2、info.plist文件配置:3、在AppDelegate中配置友盟APPKey1>导入头文件:#import #import #import - (void)setupUMKey{ //设置友盟key [UMSocialData setAppKey:@""];

2016-09-05 17:27:57 2914

原创 一些常用网址

xcode查看设备信息:选中模拟器 —> Hardware —> Device —> Manage Device

2016-09-02 10:25:32 1032

原创 防止按钮在短时间内被多次点击

- (void)buttonClicked:(UIButton *)btn{ // 在0.2秒时间间隔内多次点击只响应一次点击事件, todoSomething就是具体要实现的方法    [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething:) obj

2016-08-29 17:23:42 1430

原创 支付宝集成

一、下载支付宝SDK,导入到项目中:1、文件路径问题:target ---> buildsetting ---> header search path ---> 添加:$(SRCROOT)/项目名/Library/Alipay2、混编问题:target ---> buildsetting ---> Apple LLVM 7.0 - Language ---> Compile

2016-08-29 14:41:55 362

原创 Implicit declaration of function 'sysctl' is invalid in C99

2016-08-25 17:21:58 614

原创 iOS获取WiFi的信息

/** * 获取WiFi的信息 * 需添加SystemConfiguration.framework * iOS9之后被废弃,由完全替代 */- (NSString *)fetchWiFiName{ NSArray *ifs = (__bridge_transfer NSArray *)CNCopySupportedInterfaces(); if (!ifs)

2016-08-25 16:51:22 492

原创 压缩图片

/** * 压缩图片 */- (UIImage *)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize{ UIGraphicsBeginImageContext(newSize); [image drawInRect:CGRectMake(0,0,newSize.width,newSize.h

2016-08-25 09:13:17 152

原创 'libxml/tree.h' file not found

Header Search Paths 改为:${SDKROOT}/usr/include/libxml2

2016-08-17 17:52:48 165

原创 UILabel文字添加删除线

/***@param NSFontAttributeName文字大小*@param NSForegroundColorAttributeName文字颜色*@param NSStrikethroughColorAttributeName删除线的颜色*@param NSStrikethroughStyleAttributeName删除线样式*/UILabel *priceLabel = [

2016-08-15 12:53:22 353

原创 配置PrefixHeader.pch路径

$(SRCROOT)/项目名/PrefixHeader.pch

2016-07-29 11:56:02 855

原创 系统UINavigationController的返回

UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController]; nav.navigationBar.tintColor = kGlobalColor; [[UIBarButtonItem appearance] setBackButto

2016-07-26 17:29:59 185

转载 改变系统导航栏自带的返回按钮点击事件

#import @protocol BackButtonHandlerProtocol @optional// Override this method in UIViewController derived class to handle 'Back' button click-(BOOL)navigationShouldPopOnBackButton;@end@inte

2016-07-25 10:10:07 4134

原创 APP启动时控制台输出unexpected nil window in _UIApplicationHandleEventFromQueueEvent

appDelegate中,将:self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];[self.window makeKeyAndVisible];改为:self.window = [[UIWindow alloc] init];[self.window makeKeyAndVisibl

2016-07-22 16:55:56 2744

原创 高德地图设置当前地图的经纬度范围

- (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL) updatingLocation{ if (updatingLocation) { CLLocationCoordinate2D loca

2016-07-21 14:17:32 5309

原创 picker自定义高度

// picker view的默认高度是216,默认不可修改,要想修改,可使用以下方法:pickerView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;

2016-07-16 14:48:05 2855

原创 iOS检测键盘输入语言类型

- (void)viewDidLoad{ [super viewDidLoad]; NSNotificationCenter *nCenter = [NSNotificationCenter defaultCenter]; [nCenter addObserver:self selector:@selector(languageChanged:) name:UITextI

2016-07-13 09:14:15 2618

原创 iOS 检测字符串中是否包含表情符号

+ (BOOL)stringContainsEmoji:(NSString *)string{ __block BOOL returnValue = NO; [string enumerateSubstringsInRange:NSMakeRange(0, [string length]) options:NSStringEnumerationByComposedCh

2016-07-06 16:10:19 2730

原创 cocoapods相关问题

1、cocopods遇到The dependency `XXXXXX` is not used in any concrete target的报错处理:     http://blog.csdn.net/zhaojinqiang12/article/details/516821912、电脑升级系统后,cocoapods命令找不到:sudo gem install -n /usr/loc

2016-07-06 14:56:21 211

原创 qq第三方登录时头像为qq空间头像的问题

qq第三方登录时头像为qq空间头像的问题:UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToQQ];        snsPlatform.loginClickHandler(self, [UMSocialControllerService

2016-07-06 14:54:05 1537

原创 iOS自动布局解决警告Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

http://www.zhimengzhe.com/IOSkaifa/2847.html

2016-07-06 14:49:25 289

git_2.19.0安装包Mac版

git安装包Mac版

2018-10-11

UITabBar自定义

UITabBar自定义,顶部曲线,中间按钮突出(OC)

2017-04-12

MATLAB7.0下载地址及安装过程

此文档中包含了MATLAB7.0的下载地址、在win7系统中的安装过程以及安装过程中的出现的问题的解决方案,

2014-11-03

空空如也

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

TA关注的人

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