shannoga
shannoga

Reputation: 19869

xCode complaining after converting project to ARC

After converting project to ARC, The converting operation removed all the - assign, retain from the @properties decelerations, And left nonatomic only.

@property (nonatomic) AVCaptureVideoPreviewLayer *captureVideoPreviewLayer;
@property (nonatomic) IBOutlet UIBarButtonItem *cameraToggleButton;

Even thogh "HE DID IT", xCode gives warnings on all the declarations in the project:

xcode warnings

What is the problem? And what should I do?

Thanks

Shani

Upvotes: 1

Views: 60

Answers (1)

Oscar Gomez
Oscar Gomez

Reputation: 18488

The conversion did not go well even though XCode did it, it just failed to do so. What you have to do is basically make the properties that were declared as assign, declared as weak, and the ones that were declared as retain, now declared as strong.

This is however not always the case, which is why you should take a look at this Transitioning to ARC release notes before proceeding.

Hope that helps.

Upvotes: 1

Related Questions