[IOS] - performselector may cause a leak because its selector is unknown 에러 ( Xcode, Object-c )

IOS ( Object-C ) 2014. 11. 28. 15:05
반응형

# pragma clang diagnostic push -- 추가

# pragma clang diagnostic ignored "-Warc-performSelector-leaks" -- 추가


  실행 코드


  [target performSelector:callBack withObject:dataToString];


pragma clang diagnostic pop -- 추가


해당 구문을 추가하면 워링경고창이 사라진다


performselector may cause a leak because its selector is unknown 에러는 말그대로 셀럭터를 못찾는다는 뜻

반응형
: