0
... 내가 스위프트에이 코드 조각을 변환하는 방법내가 얼마나 경계의 UIImageView 스위프트 내가 여기에 몇 가지 문제가
:
여기imageView.layer.shadowPath = [UIBezierPath bezierPathWithRect:yourImageView.bounds].CGPath;
... 내가 스위프트에이 코드 조각을 변환하는 방법내가 얼마나 경계의 UIImageView 스위프트 내가 여기에 몇 가지 문제가
:
여기imageView.layer.shadowPath = [UIBezierPath bezierPathWithRect:yourImageView.bounds].CGPath;
당신이 이동 :
imageView.layer.shadowPath = UIBezierPath(rect:yourImageView.bounds).CGPath
Objective-C 이니셜 라이저 호출을 Swift로 변환하는 방법에 대한 일반적인 규칙은 [Swift를 Cocoa 및 Objective-C로 사용] ("https://developer.apple.com/library/prerelease/ios/documentation/Swift"의 "초기화"를 참조하십시오./Conceptual/BuildingCocoaApps/InteractingWithObj ective-CAPIs.html). –
tkns man ... 잘 작동합니다! –