腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
4
回答
__
unsafe_unretained
NSString
struct
var
、
、
、
有几种类型是
NSString
的,但是尝试这样做会导致错误。ARC forbids Objective-C objects in structs or unions__
unsafe_unretained
然而,对于一个
NSString
的结构中的__
unsafe_unre
浏览 8
提问于2012-08-08
得票数 3
回答已采纳
1
回答
从Swift访问目标-c结构
、
、
、
下面是我的.h和.m文件的片段:extern const
struct
OrderItemAttributes { __
unsafe_unretained
NSString
*created_by_id; __
unsafe_unretained
NSString
*device_deletedOrderItem : NSManagedObject
浏览 1
提问于2015-11-30
得票数 5
回答已采纳
1
回答
如何定义全局结构?
、
、
代码: __
unsafe_unretained
NSString
*name; __
unsafe_unretained
NSString
*firstName; }student;
浏览 3
提问于2016-01-21
得票数 0
回答已采纳
1
回答
XCode 4.6中的发电机与电弧
、
、
、
、
mogenerator -m FavesDataModel.xcdatamodeld/FavesDataModel.xcdatamodel --template-
var
arc=trueextern const
struct
FavoriteAttributes { __
unsafe_unretained
NSStri
浏览 1
提问于2013-08-12
得票数 0
回答已采纳
2
回答
转换或比较"Unmanaged<
NSString
>和
NSString
“
、
、
我在目标C中有一个框架,其结构如下:
struct
VehicleStruct __
unsafe_unretained
NSString
*const CAR;__
unsafe_unretained
NSString
*const MOTORCYCLE;};#import "VehicleCl
浏览 3
提问于2016-05-26
得票数 2
回答已采纳
4
回答
在结构中使用object对象时的圆弧误差
我有这样的台词:{ unichar uchar;我得到了一个错误: 弧禁止在结构或联合中的目标
浏览 8
提问于2013-02-09
得票数 12
2
回答
有什么更好的方法来检查string是否是一个结构的成员呢?
、
、
、
我这样做是这样的:extern const
struct
MyAttributes { __
unsafe_unretained
NSString
*attribute2; __
unsafe_unretained
NSStr
浏览 2
提问于2013-09-26
得票数 0
回答已采纳
1
回答
如何只在静态库中包含包含结构的.h文件
、
、
struct
ApiResponseStruct __
unsafe_unretained
NSString
* const A; __
unsafe_unretained
NSString
* const C;}; extern const
浏览 3
提问于2013-12-26
得票数 2
回答已采纳
1
回答
对象-c结构属性在使用前被释放。
、
、
我的目标-C代码中有这样一个结构:>__
unsafe_unretained
NSString
*string1;__
unsafe_unretained
NSString
*string3;__
unsafe_unretained</
浏览 1
提问于2013-08-28
得票数 0
回答已采纳
2
回答
目标-C-为什么添加两个字符串导致崩溃?
、
、
结构h: __
unsafe_unretained
NSString
*input_url;};视图控制器m: StructIOS.use_url = @"relay", StructIOS.server
浏览 2
提问于2017-03-08
得票数 0
回答已采纳
2
回答
如何访问好友在facebook上的头像?
、
、
、
-(void)getLeaderboardInfo [FBRequestConnection startWithGraphPath:[
NSString
stringWithFormat:@"m_pLeaderboardEntries[index].pFriendName.text = [
NSString
stringWithFormat:@"%d. %@", index+1, name];break; } } The Lea
浏览 1
提问于2014-11-08
得票数 1
4
回答
如何在构造函数中初始化Objective-C结构?
、
、
、
我在Objective-C上使用一个结构来存储一些数据,如下所示:{
struct
Data{ __
unsafe_unretained
BOOL isRegister;
浏览 4
提问于2012-09-17
得票数 12
回答已采纳
1
回答
绑定到iOS静态库时从单点访问Objective-C结构
、
、
、
、
我有一些第三方iOS静态库,其中包含包含const
struct
的.h文件{ __
unsafe_unretained
NSString
* const SecondName; extern c
浏览 1
提问于2013-12-26
得票数 1
2
回答
xcode 5上的ARC问题和独树一帜
、
、
、
、
这就是问题所在,当我试图构建我的xcproject时,在以下代码的第3行显示一个错误:{
NSString
*string
浏览 3
提问于2013-12-24
得票数 0
回答已采纳
1
回答
使用目标C结构时防止takeRetainedValue或takeUnretainedValue
、
、
、
、
使用该帖子中的相同示例:
struct
MONExtResultStruct { __
unsafe_unretained
NSString
* const ErrorCode;}; extern const
struct</e
浏览 3
提问于2016-06-26
得票数 0
1
回答
在子类中添加到超类的结构
、
、
我正在使用Mogenerator为我的CoreData构建类,我喜欢它基于CoreData属性生成的属性名,比如_TAGUser的头文件中的 __
unsafe_unretained
NSString
*displayName;} TAGUserAttributes; @interface _TAGUser : NSManagedObje
浏览 1
提问于2015-01-13
得票数 2
回答已采纳
3
回答
Objective-C禁止使用结构吗?
、
、
我是Objective C的新手arc forbids objective-c objects in
struct
谢谢!编辑:作为示例的一些代码 // The goal is to have a
struct
that holds information aboutan instance variable o
浏览 0
提问于2015-02-12
得票数 12
回答已采纳
1
回答
将(
NSString
*)转换为(int *)?
、
、
、
、
我有一个
NSString
。我需要把它储存在一个结构里。 int *s;并设置好它。return (__bridge_retained
NSString
*)st.s;
struct
{ __
un
浏览 2
提问于2012-10-05
得票数 1
回答已采纳
4
回答
ARC禁止结构或联合中的Objective-C对象,尽管标记了file -fno-objc-arc.
、
、
、
、
ARC禁止结构或联合中的Objective-C对象,尽管标记了file -fno-objc-arc?为何会这样呢?
浏览 0
提问于2011-11-11
得票数 85
回答已采纳
2
回答
结构中的__
unsafe_unretained
、
假设我有一个结构,我在其中声明如下:{}
struct
myStruct __
unsafe_unretained
NSString
*aString;它会停止错误,但会在运行时崩溃,因为我认为
浏览 3
提问于2014-07-11
得票数 2
回答已采纳
点击加载更多
相关
资讯
iOS14新特性-WidgetKit开发与实践
c/c+结构体与结构体指针
iOS性能优化 — 一、crash监控及防崩溃处理
PHP FFI 允许在 PHP 脚本中嵌入原始 C 代码
C程序员是怎样评判GO语言的
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券