dqrqp8492 2012-05-24 23:24
浏览 34
已采纳

从iOS 5访问Web服务上的MySQL

I'm looking at ways to get information from my MySQL DB using iOS.
The DB and its PHP file work great (I have a working app for android which accesses it)
I wanted to use ASIHTTPRequest, but It gives all kind of problem when using ARC. I tried finding guide on how to create a static library for it, but everything I tried didn't work, I couldn't get it to run, getting about 30 errors regarding ARC (also from sbJSON)

I'm guessing that there are other ways, but googled couldn't help me with this. All I can find was getting info from it. But i need to be able to update it as well

  • 写回答

1条回答 默认 最新

  • dqwp81696 2012-05-25 00:25
    关注

    They are probably down voting because of the poor formatting of the question.

    It also looks like this is your first time, or atleast new to iOS development, if this is the case avoid using ARC, as it uses a few different property flags. It can be a pain to use with Non-ARC library

    ie instead of retain it now uses strong

    Also, you should know by now, if you don't show an attempt at the problem people tend not to help

    Edit: here are some links to getting Non-Arc Code working in an Arc Enabled Project:

    http://www.seriousmonster.com/mixing-arc-and-non-arc-code-with-static-libraries/

    http://maniacdev.com/2012/01/easily-get-non-arc-enabled-open-source-libraries-working-in-arc-enabled-projects/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)