E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
NSString
iOS isa理解测试:实例方法,类方法,iskindof,isMemberof问题
面试题一:考察实例方法和类方法#import#import#ifdefDEBUG#defineLGLog(format,...)printf("%s\n",[[
NSString
stringWithFormat
Johnny_Z
·
2023-06-07 07:58
Ios中常见的问题
__weak只能在ARC模式下使用,也只能修饰对象(
NSString
),不能修饰基本数据类型(int)。3.__block对象可以在block中被重新赋值,__weak不可以。
wangbao1991
·
2023-06-06 23:14
简述
Sket
iOS常见题
iOS 获取网页标题
webViewdidFinishNavigation:(WKNavigation*)navigation{if(self.showTopBarTitle){[selfgetTitle];}//获取标题-(void)getTitle{
NSString
刘小哈哈哈
·
2023-06-06 22:07
ios
objective-c
android
OC技巧
拖动到代码段区域,设置代码段的标题,设置快捷键pcopy代码区设置:@property(nonatomic,copy)
NSString
*;下次直接输入pcopy+回车键,能快速输出代码段。
xqiiitan
·
2023-05-25 22:36
分享
NSString
*shareText=@"";图片NSURL*shareUrl=[NSURLURLWithString:[
NSString
stringWithFormat:@"https://apps.apple.com
Forever_HEN
·
2023-04-21 21:26
2019-08-28
//字符串转unicode(
NSString
*)unicodeStringWithString:(
NSString
*)string{
NSString
result=[
NSString
string];for
涛大
·
2023-04-21 20:14
iOS 关联属性底层探索
先来看看这个案例:main.m声明:#import#import//MyPerson@interfaceMyPerson:NSObject{int_sum;}@property(nonatomic,copy)
NSString
顶级蜗牛
·
2023-04-21 20:35
iOS textField 水印字体大小 颜色设置 ..Button 字体换行
NSString
*holderText=@"请输入原密码";NSMutableAttributedString*placeholder=[[NSMutableAttributedStringalloc]
WS_0909
·
2023-04-21 19:53
iOS typedef #define的区别和使用
[使用:Oldmanm={"hah"};]typedefstructMan{
NSString
*name}Oldman;//给block取别名HBlocktypedefvoid(^HBlock)(inta
夜之海澜
·
2023-04-21 18:07
【code_hyy_基础】OC中字符串为什么要用Copy?
我们在声明一个
NSString
属性时,对于其内存相关特性,通常有两种选择(基于ARC环境):strong与copy。那这两者有什么区别呢?
Hyyqinfen
·
2023-04-21 18:41
Block深入浅出
void(^dismissBlock)(void);@property(nonatomic,copy)void(^dismissBlock2)(UIView*view);void(^logBlock)(
NSString
一直在路上66
·
2023-04-21 15:07
iOS---strong和copy的区别
#import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)
NSString
*strStrong;@property
彬至睢阳
·
2023-04-21 10:49
Runtime应用1-关联对象
interfaceUIView(DefaultColorView)@property(nonatomic,strong)UIColor*defaultColor;@property(nonatomic,copy)
NSString
Lonely_Flyer
·
2023-04-21 07:58
FMDB 存储请求
implementationRequestTool//static保证了_queue无法被外部调用staticFMDatabaseQueue*_queue;+(void)initialize{//获取沙盒路径
NSString
henu_Larva
·
2023-04-21 06:58
NSMutableString 不要用 copy
疑问:我们都知道copy一般用来修饰有对应可变类型的不可变对象上,比如
NSString
,NSArray和NSDictionary。
凡几多
·
2023-04-21 05:25
NSNumber 转
NSString
精度丢失的问题
问题描述:在iOS开发中:涉及价格金额处理,后台有时会返回Number类型的数据,打印或者经过Json转Model后的
NSString
有时会出现精度丢失的问题,如果涉及到金额的加减乘除运算问题将暴露得更为明显
冰宫无凉
·
2023-04-21 03:08
OpenGLES学习----图片翻转(3)
4538810df642f491.png先来看一下系统坐标系和Opengl坐标系的区别;image方法1-将顶点沿z轴旋转180度修改顶点着色器,加入旋转矩阵和缩放矩阵,虽然缩放矩阵暂时用不到;const
NSString
pengxiaochao
·
2023-04-21 00:10
给UIButton设置背景颜色
setBackgroundColor:(UIColor*)backgroundColorforState:(UIControlState)state;@property(nonatomic,strong)
NSString
00after
·
2023-04-20 17:03
获取某个类自身的所有属性
mutableDict=[NSMutableDictionarydictionary];NSArray*propertyArray=[selfgetClassPropertys:[selfclass]];for(
NSString
WeeverLu
·
2023-04-20 16:15
iOS UITableViewCell内嵌UITextField
1.UKInputTableViewCellUKInputTableViewCell包含一个标题栏和一个输入框,用来接收输入内容typedefvoid(^InputChangeBlock)(
NSString
假装你是大灰狼
·
2023-04-20 16:30
IOS
应用
ios
UITableViewCell
UITextField
NSInputStream、NSOutputStream实现文件的拷贝
NSInputStream、NSOutputStream实现文件的拷贝
NSString
*inPath=@"/Users/yuanbinhuang/Documents/2.机器学习/(07)工作流程与模型调优
wpLishuai
·
2023-04-20 14:48
iOS开发--打印NSRange,CGRect,CGPoint等结构体
在我们编程的时候,有时候会需要打印一些NSRange,CGRect,CGPoint等结构体,但用%@打印的话会出现警告或者错误今天我介绍一下一些这样的结构体的打印方法:
NSString
*
NSString
FromCGPoint
遠遊旳遊子
·
2023-04-20 13:34
ios 跳转第三方App文档预览
预览即可具体实现代码-(IBAction)thirdPartAppAction:(UIButton*)sender{[selfthirdAppPreview];}-(void)thirdAppPreview{
NSString
赵哥窟
·
2023-04-20 01:50
iOS 字符串MD5加密
//引入头文件#import-(
NSString
*)md5HexDigest:(
NSString
*)input{constchar*str=[inputUTF8String];unsignedcharresult
Sh1mmer
·
2023-04-19 22:53
通过UIApplicationMain实现应用内多种事件拦截
新建的main.m文件长这样:intmain(intargc,char*argv[]){
NSString
*appDelegateClassName;@autoreleasepool{appDelegateClassName
风海铜锣
·
2023-04-19 12:04
xcode
ios
objective-c
iOS 探索类(上)--类的结构
LPPerson继承于NSObject,LPStudent继承于LPPerson:@interfaceLPPerson:NSObject@property(nonatomic)
NSString
*name
Sheisone
·
2023-04-19 04:02
Copy 和 MutableCopy
@interfaceViewController()//Strong@property(nonatomic,strong)
NSString
*sString;@property(nonatomic,strong
Roger_max
·
2023-04-19 03:04
手动设定实例变量的KVO
如果这个对象是一个实例变量,那么就需要我们手动实现KVO了,如下:#importNS_ASSUME_NONNULL_BEGIN@interfacePerson:NSObject{
NSString
*_age
御雪飞斐
·
2023-04-19 02:17
如何实现同步机制?
-(
NSString
*)someString{@synchronized(self){return_someString;}}-(void)setSomeString:(NSStrin
CharmecarWang
·
2023-04-19 00:58
Null passed to a callee that requires a non-null argument
不能为空)如果放在@property里面的话不用写下划线@property(nonatomic,copy,nonnull)
NSString
*title;@property(nonatomic,copy)
RobinZhao
·
2023-04-18 22:54
EGOCache 缓存对象数组
EGOCache常用方法如下://创建缓存目录-(id)initWithCacheDirectory:(
NSString
*)cacheDirectory;//清除缓存-(void)clearCache;
利尔德
·
2023-04-18 19:32
strong,copy区别
上代码strong#import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)
NSString
*name;
本帅不良
·
2023-04-18 19:08
笔记-iOS中级教程多线程
bridgepthread_tpthread;//char*name="zs";//intresult=pthread_create(&pthread,NULL,demo,name);//------使用OC语言
NSString
lotus_yoma
·
2023-04-18 18:09
iOS 从url中获取文件名以及后缀
//这里有一个模拟器沙盒路径(完整路径)
NSString
*index=@"/Users/junzoo/Library/ApplicationSupport/iPhoneSimulator/7.0.3/Applications
ekou
·
2023-04-18 16:45
iOSBodyForm、multipart/form-data视频上传
:622177838,期待你的加入+(void)multiPartMoviePost:(NSDictionary*)dicDataandImageNames:(NSArray*)imagesURL:(
NSString
YimG
·
2023-04-18 15:45
OC语言的动态特性
像内置的明确的基本类型都属于静态类型(int、
NSString
等)。静态类型在编译的时候就能被识别出来。所以,若程序发生了类型不对应,编译器就会发出警告。而动态类型就编译器编译的时候是不能被识别的
单线程Jack
·
2023-04-18 13:57
Realm使用
RealmStudio安装模型的创建.h文件@interfacePerson:RLMObject/**Realm支持的数据类型BOOL、int、NSInteger、long、longlong、float、double、
NSString
Mr_Shaozj
·
2023-04-18 13:58
iOS 去除字符串后面多余的零
NSString
*str_price=[selfdeleteFloatAllZero:self.str_total];-(
NSString
*)deleteFloatAllZero:(
NSString
*)
壮士你怎么了
·
2023-04-18 12:05
面试题
1、@property声明的
NSString
(或NSArray,NSDictionary)经常使用copy关键字,为什么?如果改用strong关键字,可能造成什么问题?
DB001
·
2023-04-18 11:14
iOS Openssl 获取证书信息及验签
获取证书数据获取+(NSDictionary*)getCertInfoWithCerData:(NSData*)certDatajson:(
NSString
*)json{if(!
LT_9999
·
2023-04-18 09:22
iOS UUID、IDFV、IDFA 与 唯一标识符
获取方式:方法一+(
NSString
*)getUUID{CFUUIDRefuuid=CFUUIDCreate(NULL);
NSString
*UU
猫大人H
·
2023-04-18 09:54
iOS手机号输入框相关问题解决
复制手机联系人3.解决方案1>数字键盘self.middleTextField.keyboardType=UIKeyboardTypeNumberPad;2>数据校验-(BOOL)checkTelNumber:(
NSString
Dan_
·
2023-04-18 03:38
AVPlay播放视频
@property(nonatomic,retain,nullable)AVPlayer*player;
NSString
*urlStr=[[NSBundlemainBundle]pathForResource
AsiaSun.
·
2023-04-18 01:03
iOS
iOS Base64编码解码的两种方法
一、第一种方法使用GTM第三方类库咱们新建一个字符串的分类
NSString
(Base64)
NSString
+Base64.h#importNS_ASSUME_NONNULL_BEGIN@interface
NSString
申子辰林
·
2023-04-18 01:30
IOS
Objective-C
base64
ios
objective-c
【iOS面试粮食】OC语言—Category(分类)和类扩展(extension)、关联对象
我们平常都是使用分类来对系统的类封装一些小功能,如
NSString
判空处理等,可以看下ibireme大神开源的这个库YYCategories,都是针对系统的类使用分类拓展的小功能,很实用。再来看看业
KaironZz
·
2023-04-18 01:24
Category关联对象
中添加属性1、在Category中定义属性,但是不实现1、RevanPerson#import@interfaceRevanPerson:NSObject@property(nonatomic,copy)
NSString
紫荆秋雪_文
·
2023-04-18 01:10
iOS
NSString
字符串查找、截取、拆分、替换、验证、改变大小写(#####(在ios中在字符串中 “\"” 代表“"”英文引号),例子:@"sdafnafa\"哈哈\"daad")
strrangeOfString:@"567"];if(range.location==NSNotFound){NSLog(@"str中没有找到567");}else{NSLog(@"搜索范围%@",
NSString
FromRange
阳光下的叶子呵
·
2023-04-17 23:27
WebViewJavascriptBridge 调用过程(一)
2、JS端的匿名函数对应OC端的block3、OC端可以直接调用js//WKWebView-(void)evaluateJavaScript:(
NSString
*)javaScriptStringcompletionHandler
愤怒的八哥
·
2023-04-17 23:15
WKWebView 遇到的坑
NSString
*cookie=[
NSString
stringWithFormat:@"document.cookie='session_id=%@';document.cookie='CLIENT=App
AIGCer
·
2023-04-17 17:49
Object-C
iOS开发
WKWebView
WKWebView
《神经病院objc runtime入院考试》 第二题分析
@implementationSon:Father-(id)init{self=[superinit];if(self){NSLog(@"%@",
NSString
FromClass([selfclass
SlothYP
·
2023-04-17 15:27
上一页
21
22
23
24
25
26
27
28
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他