自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Marvel博客

记载工作

  • 博客(56)
  • 收藏
  • 关注

原创 很多开发者最近升级最新Xcode Cocoapods后就报错arm64

升级Xcode 12后就出现错误:The linked framework 'Pods_xxx.framework' is missing one or more architectures required by this target: arm64.在 Bulid Setting中的User-Defined下VALID_ARCHS添加x86_64

2021-03-06 16:51:32 714

原创 ERROR ITMS-90171: "Invalid Bundle Structure - The binary file

找了一天的资料,终于找到解决办法了(亲测有效)The libswiftRemoteMirror.dylib is copied to the App Bundle, but the App Bundle must not contain a binary other than the apps binary.To fix this: In Xcode, remove "li...

2019-07-18 18:09:15 1976

转载 iOS打包 遇到的[x86_64, i386]问题解决方案iTunes Store Operation Failed ERROR ITMS-90087 && ERROR ITMS-90535

项目上架,打包遇到[x86_64, i386]问题,先把问题扔出来 iTunes Store Operation Failed ERROR ITMS-90087: "Unsupported Architectures. The executable for MMMagazineReadList.app/Frameworks/HelpDesk.framework contains ...

2019-07-17 21:58:38 747

原创 xib自定义UIcollectionViewCell的问题

//注册集合视图单元格[_collectionView registerNib:[UINib nibWithNibName:@"JZCaseCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"MyCollectionCellID"]; //使用集合视图单元格- (UICollectionViewCell ...

2018-12-17 11:30:57 432

转载 Github上Fork代码,及源码修改

使用CocoaPods管理需要修改的第三方库1、首先在github上fork一份第三方库的代码2、将fork到自己目录下的MJRefrsh代码Clone下来,进行需要的修改,然后提交。提交后可查看到新的提交记录与说明3、修改Podfile,将pod ‘MJRefresh’的git地址修改为fork后的代码地址:pod ‘TFDropDownMenu’, :git=>'https:/...

2018-12-13 15:27:19 1419

原创 ios 请求URL中,有中文

[[NSString stringWithFormat:@"%@/activity/provider-activity-list?city=%@&session_key=%@",[SSingleton sender].web_view_domain,[SSingleton sender].city,[SSingleton sender].key] stringByAddingPercent...

2018-06-13 09:26:21 611

原创 UIButton title字体颜色不一样

_agreementBtn = [uibutton buttonWithType:UIButtonTypeCustom];        [_agreementBtn setTitle:@"查看《保证金管理协议》" forState:UIControlStateNormal];        _agreementBtn.titleLabel.font = [UIFont systemFontOfS...

2018-03-21 15:09:45 4340

原创 iOS web中js交互

在iOS 开发中,难免会使用到web中的交互这样我们就要获取交互中的事件了@protocol ESendWebDelegate <JSExport>- (void)backUserHome:(NSString *)backBtnAction;@end签好代理<ESendWebDelegate>///backUserHome是js中的方法名- (void)backUserHo...

2018-03-19 11:25:16 156

原创 NSArray 有字典,转换json

+ (NSString *)arrayToJSONString:(NSArray *)array{    NSError *error = nil;        NSData *jsonData = [NSJSONSerialization dataWithJSONObject:array options:NSJSONWritingPrettyPrinted error:&error

2018-02-07 16:30:13 432

转载 iOS 判断当前页面是哪一个Viewcontroller

-(UIViewController*)atPersentViewController:(UIViewController*)vc {        if (vc.presentedViewController) {                        return [self atPersentViewController:vc.presentedViewContr

2018-01-30 19:57:38 5666

原创 uitableview增加行,删除行

删除行:[self.selectTableView beginUpdates];                   [self.selectTableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];                   [self.s

2017-12-28 19:51:51 2411 1

原创 UIAlertController 输入文本框

//初始化提示框;    UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"商品费用" message:nil preferredStyle:UIAlertControllerStyleAlert];    [alert addTextFieldWithConfigurationHandler:

2017-11-08 21:51:03 1903

原创 pods 更新指定库

执行pod install或者执行pod updatepod update AFNetworking  --verbose --no-repo-update

2017-11-04 14:27:49 8255

原创 UIAlertView 自动消失

- (void)showAlert{        UIAlertView *alert = [[UIAlertViewalloc]initWithTitle:@"提示"message:@"2秒后将消失"delegate:nil cancelButtonTitle:nilotherButtonTitles:nil];        [alertshow];   

2017-10-28 10:37:50 239

转载 CocoaPods安装使用

转载http://www.jianshu.com/p/6e5c0f78200a

2017-10-19 17:06:03 286

原创 iOS json格式转换

+(NSString *)jsonStringWithString:(NSString*) string{   return[NSString stringWithFormat:@""%@"",          [[stringstringByReplacingOccurrencesOfString:@"\n"withString:@"\\n"]stringByReplacingOc

2017-08-04 14:30:43 2966

原创 uiimageview 读取uiimage的大小

UIImage* image = [UIImage imageNamed:@"image.png"];   UIImageView* imageView = [[[UIImageView alloc] initWithImage:image] autorelease];   imageView.frame = CGRectMake(0, 0, 300, 200);   imageVie

2017-05-11 17:32:01 950

原创 iOS 百度地图运动轨迹的角度

请求实时百度位置的时候,有返回一个方向,速度,角度的值,但我用百度数据返回回来的值CGAffineTransformMakeRotation(direction),角度会不对在晚上也百度了方法:#define pi 3.14159265358979323846#define degreesToRadian(x) (pi * x / 180.0)#define radiansToDe

2017-04-13 16:55:35 1309

原创 iOS 百度地图鹰眼,导入库时,报错误

Reason: no suitable image found.   出现这个错误的话,一般是你导入framework的方式不对在general->embedded binaries 把拖进去,就OK了

2017-03-24 17:26:21 1001

原创 iOS 百度地图使用鹰眼时,出现image not found

Library not loaded: /System/Library/Frameworks/Social.framework/Social  Referenced from: /var/mobile/Applications/00D3E0A7-4FF6-451E-B11C-87D7A189F425/sample.app/sample  Reason: image not foun

2017-03-22 15:24:34 1911 1

转载 linker command failed with exit code 1 (use -v to see invocation)

1、问题来源第一种,是你导入某一个三方库;第二种,是你在vim Podfile中删除或者屏蔽掉某一个三方库。2、解决方案1、对于引入第三方库需要检查 或者检查 这两处是否导入该库的路径。2、对于删除三方库就是因为你之前导入的时候,已经在某些地方留下了该库的路径,但是闲杂删除了之后,就找不到该库了。需要做的需要检查上面解决

2017-02-24 18:40:25 471

原创 iOS 百度地图反编码

_geoSearch = [[BMKGeoCodeSearch alloc]init] ;    _geoSearch.delegate = self;[self reverseGeoSearch:CLLocationCoordinate2DMake(lat, login)];- (void)reverseGeoSearch:(CLLocationCoordinate2D)

2017-02-22 20:08:47 1595

原创 ios UITableView 区和cell一起滑动

tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 60 - 50) style:UITableViewStyleGrouped];//UITableViewStyleGrouped

2017-02-22 14:59:58 261

原创 ios调起微信客户端失败 微信支付调起失败

1.检查url schemes里是否配置了申请的aped。2.商户APP工程中引入微信lib库和头文件,调用API前,需要先向微信注册您的APPID,代码如下:[WXApi registerApp:@"wx86763c569bdab234" enableMTA:YES];

2017-02-16 17:19:54 7955

原创 ios 获取当前月的总天数

// 获取当月的天数- (NSInteger)getNumberOfDaysInMonth{    NSCalendar * calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; // 指定日历的算法 NSGregorianCalendar - ios 8 

2017-02-12 12:41:50 4789 1

原创 ios json转数组

- (NSArray *)stringToJSON:(NSString *)jsonStr {    if (jsonStr) {        id tmp = [NSJSONSerialization JSONObjectWithData:[jsonStr dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingAllo

2017-02-08 14:21:22 8954

原创 UIPickerView 行的大小和字体大小

UIPickerView 设计每行的大小- (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component{return80.0;}- (UIView *)pickerView:(UIPickerView *)pickerVie

2017-02-04 16:04:31 5387

原创 iOS 开发键盘弹出,tableview上升

-(void)viewWillAppear:(BOOL)animated{    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWilHide:) name:UIKeyboardWillHideNotification object:nil];    [[NSNotif

2017-01-19 18:56:17 392

原创 uitextview.text赋值时,输入改变uitextview的值,监听改变状态

在进入页面的时候,uitextview.text = @“uuuuuuu”时,然后把光标输入uitextview的时候,这样,就会监听到uitextview里面值的改变,包括@“uuuuuuu”也在里面如果用-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:

2017-01-19 11:46:32 4484

原创 Xcode 8.0以上的版本,打包app的时候,在iTunes 没有显示

我在用Xcode 8.0打包的时候,然后在iTunes上面没有显示我打包的版本,这样把全部权限加上去,这样子就能显示了麦克风权限:Privacy - Microphone Usage Description 是否允许此App使用你的麦克风相机权限: Privacy - Camera Usage Description 是否允许此App使用你的相机相册权限: Priv

2017-01-10 17:42:37 330

转载 iOS 获取手机的物理(Mac地址)地址

获得手机的mac地址,但是有个限制,是在iOS7以下才可以获得。iOS7以后苹果对于sysctl和ioctl进行了技术处理,MAC地址返回的都是02:00:00:00:00:00。官方文档上这样写的“Twolow-level networking APIs that used to return a MAC address now return thefixed value 02:00:00:

2016-12-28 19:57:54 7355

原创 iOS xib和代码关联使用

把cell和xib关联起来的方法;(记住,别忘了在xib里面设置:Identifier)[_tableTabA registerNib:[UINib nibWithNibName:@"ConversionDetaCell" bundle:nil] forCellReuseIdentifier:@"hcconversionLogCell"];

2016-12-28 13:59:24 963

原创 iOS NSNotificationCenter监听移除

在UIViewController里面注册通知,页面消失时移除通知。你这边可要注意了,一定要成双成对出现,如果你只在viewWillAppear 中 addObserver没有在viewWillDisappear 中 removeObserver那么当消息发生的时候,你的方法会被调用多次,这点必须牢记在心。-(void)viewWillAppear:(BOOL)animated{   

2016-11-30 10:43:28 6805

转载 no matching provisioning profiles allowed specified entitlements

app 大包时,出现“no matching provisioning profiles allowed specified entitlements ”https://www.sian.space/analysis/2016/08/15/223617.html

2016-11-05 16:20:24 263

转载 iOS app审核2.3.7被拒

2.3.7 Your app name to be displayed on the App Store includes keywords or descriptors点击查看《http://aso100.com/zhuanlan/article/id/191》

2016-10-08 09:20:43 7266

原创 支付宝 ali110错误

在百度,没有找到ali110的错误跑去问了客服,说是把product_id换就行了,原来如果是WAP_FAST_LOGIN,换成:APP_FAST_LOGIN  如果是:APP_FAST_LOGIN,就换了:WAP_FAST_LOGIN

2016-09-26 12:15:59 2937 1

原创 iOS 中,web访问URL的时候,有中文

在iOS中,如果我没访问的URL地址中,存在中文的话,需要转换strURL = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)strURL, nil, nil, kCFStringEncodingUTF8));

2016-09-13 10:07:51 964

原创 iOS 自定义百度地图大头针点击事件

UMKPointAnnotation* pointAnnotation = [[UMKPointAnnotation alloc]init];大头针自定义传值

2016-09-10 13:13:52 5346

原创 ios 百度地图居中显示

CLLocationCoordinate2D ggg = CLLocationCoordinate2DMake(22.525710, 113.351915) ;[_mapView setCenterCoordinate:ggg animated:YES];

2016-09-10 11:07:36 1628

原创 UITextField keyboardType类型,加小数点键盘

在设置金额的时候,我们一般可以是熟人小数点的,这样就用keyboardType = UIKeyboardTypeDecimalPad;

2016-09-08 12:06:21 7683

空空如也

空空如也

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

TA关注的人

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