Topic : CoreServices/CoreServices.h doesn't want to be found on Device but sim ok
来源:互联网 发布:网络学位证有用吗 编辑:程序博客网 时间:2024/06/11 06:13
http://discussions.apple.com/thread.jspa?threadID=1539092
------------------------------------------------------------------------------------------------------------------
Hi all,
on the device CoreServices is not working. I use CFNetwork.
you have to do a little trick with the define... this is what is in my code
#if TARGET_IPHONE_SIMULATOR
#import <CoreServices/CoreServices.h>
#else
#import <CFNetwork/CFNetwork.h>
#endif
of course you have to import the right framework in the xcode project...
look at the Developer guide: there is the right example for that.
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/DevelopmentEnvironmentOverview/chapter_4_section_7.html#//apple_ref/doc/uid/TP40007072-CH5-SW20
HTH
cheers
Teo
- Topic : CoreServices/CoreServices.h doesn't want to be found on Device but sim ok
- Add rightBarButtonItem but doesn't seem to be working
- /System/Library/CoreServices
- AR/AP invoices/payment transferred to GL successfully but can't be found in GL module
- AR invoices transferred to GL successfully but can't be found in GL module
- roman doesn't be built in one day; but several years ` but you have to build it hard for every day
- Attempting to start Apache service...but apache doesn't work
- I don't want to be the third wheel.
- Don't want to try playing game on linux
- error: Expected linebreaks to be ‘LF’ but found ‘CRLF’
- "WorldClient was expected to be running but wasn't;"解决方法
- Don't want to leave
- What .h file should be include if you want to use colorref
- Why you don't want real-time analytics to be exact
- Why doesn't setting clearTaskOnLaunch=“true” cause OnCreate to be called?
- Policy doesn't allow compute_extension:simple_tenant_usage:show to be performed. (HTTP 403)
- Statistics doesn’t have to be so hard! Resampling in R and SAS
- appium Activity used to start app doesn't exist or cannot be launched 问题解决
- 将 文本格式标记 转化为 html格式标记
- direct show媒体播放器类
- 如何知道rpm包把其中的文件安装到哪里去了?
- linux下动态链接库的加载及解析过程
- SQL查询语句
- Topic : CoreServices/CoreServices.h doesn't want to be found on Device but sim ok
- 读博者戒zz
- 总结C++中的所有强制转换函数
- 开始→运行→输入的命令集锦
- TBCP 消息简要概述
- 如何在C#中使用 Win32和其他库
- 强大的LVM
- ——使用『与非』运算实现权限判断
- 【转】系统Hang住时用oradebug分析的方法