
ios
xiejunna
软件开发
展开
-
The code signature version is no longer supported.
The code signature version is no longer supported.原创 2023-03-08 16:28:36 · 1536 阅读 · 1 评论 -
iPhone is not available. Please reconnect the device
iPhone is not available. Please reconnect the device原创 2023-03-08 16:17:29 · 848 阅读 · 0 评论 -
ios版本和xcode版本对应关系
iPhone is not available. Please reconnect the device原创 2023-03-07 18:36:30 · 1412 阅读 · 0 评论 -
cer证书转换.p12文件
本来不是ios开发的,这次公司需要,需要开发一个apple pay demo,ios app里调用apple pay 这个相应的博客很多,可是公司还要开发一个h5端调用apple pay的,这里要用的证书都很是头大,要pem格式的,生成的证书都是cer后缀格式的,咋办?各种的查资料,总结一下过程,以后忘了可以再回来看下。 具体步骤如下:(苹果开发者中心生成cer证书,这里就不再赘述了)生成pem格原创 2017-03-09 20:30:08 · 28205 阅读 · 1 评论 -
ios 属性readwrite,readonly,assign,retain,copy,nonatomic
1). readwrite 是可读可写特性;需要生成getter方法和setter方法时2). readonly 是只读特性 只会生成getter方法 不会生成setter方法 ;不希望属性在类外改变3). assign 是赋值特性,setter方法将传入参数赋值给实例变量;仅设置变量时;4). retain 表示持有特性,setter方法将传入参数先保留,再赋值,传入参数的retaincount会原创 2017-03-21 18:41:45 · 1045 阅读 · 0 评论 -
<WebKit/WebKit.h>fine not found
我是ios的小白,刚试着写一个webView的demo,就是导入了一下头文件,就报了这个错<WebKit/WebKit.h>fine not found,各种的查资料,最终找到解决方案,但是却不知道为什么?我的mac os 版本是10.12.3,xcode版本是8.2.1,ios sdk版本是10.2。在ViewController.m中这么引入头文件的:#import <WebKit/WebKit原创 2017-03-11 11:56:18 · 2020 阅读 · 0 评论 -
xcode中查看ios sdk版本
打开终端,使用命令: xcodebuild -showsdks 终端显示如下: 参考文档: http://www.cnblogs.com/lihaiyin/p/4409025.html原创 2017-03-11 11:06:02 · 8083 阅读 · 0 评论 -
NSURLConnection三种请求方式
1.发送同步请求(返回NSData数据)[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];在当前线程执行,返回NSData数据2.发送异步请求(利用block)[NSURLConnection sendAsynchronousRequest:request queue:[NSO转载 2017-03-06 14:56:13 · 3192 阅读 · 0 评论 -
ios objective-c 生命周期
AppDelegate.m文件中的生命周期方法//// AppDelegate.m// Hello_oc//// Created by ybs on 2017/2/25.// Copyright 2017年 ybs. All rights reserved.//#import "AppDelegate.h"@interface AppDelegate ()@end@implem原创 2017-02-25 17:00:58 · 921 阅读 · 0 评论 -
iOS开发中@property的属性weak nonatomic strong readonly
@property与@synthesize是成对出现的,可以自动生成某个类成员变量的存取方法。在Xcode4.5以及以后的版本,@synthesize可以省略。1.atomic与nonatomic atomic:默认是有该属性的,这个属性是为了保证程序在多线程情况,编译器会自动生成一些互斥加锁代码,避免该变量的读写不同步问题。 nonatomic:如果该对象无需考虑多线程的情况,请加入这个属性,转载 2017-02-19 14:24:52 · 332 阅读 · 0 评论