Greg Barbosa
Greg Barbosa

Reputation: 347

Xcode 5 and AFNetworking 2.0?

I'm pulling my hairs out over this, and can't seem to figure out why AFNetworking, and Xcode 5 don't seem to work together.

I'm using the tutorial seen here , and for some reason whenever I go to build the actual program it tells me:

No visible

@interface for 'UIImageView' declares the selector 'setImageWithURL:setPlaceholderImage:'

Now I've already imported AFNetworking.h into my prefix file, and I've added MobileCoreServices and SystemConfiguration in too. I'm not sure how to proceed from here.

I'm assuming the error I'm receiving is because Xcode isn't properly linking to the AFNetworking library. But how do I fix this?

Upvotes: 1

Views: 823

Answers (1)

TomSwift
TomSwift

Reputation: 39502

This is broken out in AFNetworking 2.0. Use the following #import:

#import "UIKit+AFNetworking.h"

Upvotes: 5

Related Questions