Conflict of modifiers of distributed objects by parameter type in Scrollview

I use scrollview and implement the delegate method.

-(void) scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(CGPoint *)targetContentOffset{
    CGPoint p = *targetContentOffset;
    int counter = [self counterForPosition:p];
    *targetContentOffset=[self positionForCounter:counter];;
    //load month -2;
    self.month=counter-2;
}

I get a warning from Xcode. Conflicting distributed object modifiers by parameter type in the implementation of 'scrollViewWillEndDragging: withVelocity: targetContentOffset:'

I found some hints that I don’t quite understand and does not solve the problem. Does the Singleton release method generate a warning?

Now this is just a warning and nothing will work. I think this is my personal OCD that I want to fix.

Th

+5
source share
1 answer

(CGPoint *)targetContentOffset (inout CGPoint *)targetContentOffset, , . . : http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIScrollViewDelegate_Protocol/Reference/UIScrollViewDelegate.html

FYI: in, out, inout, byref, bycopy oneway " ". , ( ), . targetContentOffset CGPoint, : in out. Clang , , , Clang ", , inout", Clang .

+4

All Articles