自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 PIP安装Python包

一、简介pip 是一个安装和管理 Python 包的工具,是easy_install的替代品二、安装包1、进入Python的安装目录D:\Users\Administrator.NXMQJ4LDWALUXIE\AppData\Local\Programs\Python\Python38\Scripts2、shift+右键,点击:在此处打开命令窗口(w)3、pip install 包名(例如requests、selenium)4、安装成功显示...

2020-09-29 14:13:59 305

原创 工具下载地址

https://www.allroundautomations.com/registered-plsqldev/

2020-09-24 13:29:13 126

原创 给label加中划线

self.newpriceLabel.text = @"¥100";   NSString *oldStr = @"¥120";    //中划线    NSDictionary *attribtDic =@{NSStrikethroughStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineSt

2015-10-31 17:57:14 552

原创 给URL标示特别颜色

- (NSMutableAttributedString *)filterLinkWithContent:(NSString *)content {    NSMutableAttributedString *attributedString = [[NSMutableAttributedStringalloc] initWithString:content];   NSE

2015-10-21 17:05:06 726

原创 更改Xcode工程名

1.将要旧的工程文件夹collectionView更名为TableViewDemo,并打开如图:2.将文件夹中的工程名改为TableViewDemo,如图所示:3.右键点击TableViewDemo.xcodeproj,选择显示包内容,打开如图:4.右键点击 project.pbxproj,,选择打开方式为文本编辑

2015-09-24 10:15:50 495

转载 iOS 的几种数据持久化方案

引用:http://www.cocoachina.com/ios/20150720/12610.html      //************************沙盒************************        //应用程序包,里面存放的是应用程序的源文件,包括资源文件和可执行文件    NSString *path=[[NSBu

2015-07-21 10:52:30 399

原创 小知识点

_image.image=[UIImageimageNamed:@"Image"];    _image.layer.cornerRadius=_image.frame.size.width/2;    _image.layer.masksToBounds=YES;    _image.layer.borderColor=[UIColorredColor].CGCo

2015-06-16 14:08:20 405

原创 设置字符串的属性

/** *  可以让一个label显示两种不同颜色,字体不同大小 * *  @param parentString    父字符串 *  @param subString 需要改变颜色的子字符串 *  @param color     颜色 *  @param size 字体大小 * *  @return 处理后带

2015-06-10 12:22:51 685

原创 CocoaPods遇到的问题

/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.2/lib/cocoapods-core/standard_error.rb:87:in `message': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)from /L

2015-06-09 14:42:15 936

原创 IOS版本更新过程中遇到未能创建图标的问题

当我把我的项目由1.0版本更新成1.1版本,我填写完信息保存的时候,总出现“未能创建图标”的提示。原来是因为我的图标选取的是1.0版本原来的图标,名字没有变化,所有总是提示这个信息,只要把该图标变换个名称就可以了。

2015-04-14 15:17:58 862

原创 Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x16dc65a0 {NSErrorFailing

使用webView加载百度网页的时候,加载失败,error为:Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x16dc65a0 {NSErrorFailingURLKey=file://www.baidu.com, NSErrorFailingURLStringKey=file://www.

2015-03-16 11:42:44 9978

原创 CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000

在控制台中输出警告信息:CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000是因为image=[UIImageimageNamed:@""]; name为空了

2015-03-11 12:28:28 820

原创 使用agvtool 自动化操作version and Build Numbers 的步骤

1.Build Numbers 存储在应用程序的Info.plist中,CFBundleVersion (Bundle version).2.先在Xcode project中设置agvtool工具可用,target ->Build Settings->combined->Versioning  2.1 Set Current Project Version to a value o

2015-02-12 15:16:32 2448 1

原创 diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory er

下载带有cocoapods管理第三方库的工程,运行时会出现diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod insta

2015-02-04 23:24:48 5217

原创 An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)

我的工程刚在Xcode5中成功运行,然后移到Xcode6中运行,结果失败了,出现了下面的错误提示 An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)解决办法是:iOS Simulator->Reset Contents and Settings... ->Rese

2015-01-19 16:33:16 506

原创 Unable to boot the iOS Simulator

在我的mac中,安装了Xcode6 和Xcode5 ,当我两个版本的Xcode的模拟器都打开的时候,用Xcode5运行程序,则提示出错信息Unable to boot the iOS Simulator    (不能引导启动IOS模拟器,因为不能区分要使用哪一个)原因:旧版本的模拟器与新版本的模拟器同时运行就会这样,解决办法:如果你想使用旧版本的xcode和模拟器就把新

2015-01-19 16:22:30 5098

原创 一次性取数组中的五个元素

NSArray *arr=@[@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11",@"12"];    NSIndexSet *indexs=[NSIndexSetindexSetWithIndexesInRange:NSMakeRange(0,5)];   NSArray *arr1=[arr object

2014-12-11 15:30:42 1178

原创 Assertion failure in -[SKSTableView _configureCellForDisplay:forIndexPath:]

今天做项目的时候,在使用SKSTableView的时候,遇到这样子的问题Assertion failure in -[SKSTableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:6509,经排查,是因为在-(UITableViewCell*

2014-12-04 11:39:16 996

原创 移除所有的子视图

[_scrollview.subviewsmakeObjectsPerformSelector:@selector(removeFromSuperview)];

2014-11-17 17:45:04 385

原创 -[__NSCFNumber length]: unrecognized selector sent to instance 0x14d697b0'

我在给一个Label赋值的时候,

2014-11-15 11:58:00 703

原创 image base64转换

//-(UIImage*)fn_binaryData_convert_image:(NSString*)binary_str{    UIImage *image=nil;    if (binary_str!=nil || [binary_str length]!=0) {        NSData *data=[[NSDataalloc]initWithBase64E

2014-09-15 15:12:58 512

原创 计算字符串的height

#define ISIOS7      ([[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )-(CGFloat)fn_heightWithString:(NSString *)string font:(UIFont *)font constrainedToWidth:(CGF

2014-08-14 16:28:32 439

转载 objc-setassociatedobject-function-error-in-64bit-mode-not-in-32bit

ok guys , there is simple and elegant solution to solve this :) little explanation :On iOS for arm64, the isa field of Objective-C objects is no longer a pointer. Some of the bits still encode t

2014-08-08 09:25:03 815

原创 自定义cell上面,根据属性设置textview的可编辑状态

自定义一个UITableViewCell,cell里面有一个UITextView,

2014-07-17 18:01:31 1169

原创 UITextView文本居上显示

[_itv_textviewsetContentOffset:CGPointZero];

2014-07-17 11:51:25 1718

原创 Collection <__NSArrayM: 0xaf88c50> was mutated while being enumerated.的解决办法

这类的错误,是同时对一个数组进行了操作

2014-07-10 12:00:12 612

原创 ios7中使用ScrollView上方留空白

1.tableView中嵌入了scrollView,在ios7中使用的时候,yo

2014-05-29 12:05:11 1492

空空如也

空空如也

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

TA关注的人

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