English 中文(简体)
new: ASIHTTPRequest - no known category methods for selectedor request WithURL
原标题:newbie stuck: ASIHTTPRequest - no known class method for selector requestWithURL

我指的是<代码>ASIHTTPRequest,并将其汇编成iOS5

然而,当我试图利用它时:

ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];

我发现错误

no known class method for selector  requestWithURL .

∗∗∗∗∗ 犯错误。

Indeed I can t see that method in the ASIHTTPRequest.m file. What am I missing? This is the latest code download from github.

Thanks, John.

问题回答

Go to target and check ASIHTTPRequest.m is a part of compiler source or not.

Make a clean build and try to build one more time. I

f 努力更新你的法典。 我可以将这些方法列入《金字典》。

确保您拥有CFNetwork。 框架、系统配置、框架 MobileCoreservices.framework, Core Graphics. 框架和校准。

可在Reachability.h(位于ASIHTTPRequest书包中称为“External”的链条)中申报,从而确保在你的项目中增加可检索性。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签