μλ νμΈμ μ¬λ¬λΆ!
μ¬μ©μμκ² μν μλ₯΄κΈ° μμμ νμν μ μλμ§ μκ³ μΆμ§λ§ μ΄λ―Έμ§λ₯Ό μμΌλ‘ μλ₯΄λ λμ ν΄λΉ μμ΄ ν¬ν¨λ μ΅μ μ¬κ°νμΌλ‘ μλ₯΄λ©΄ μ΄ν΄κ° λ κΉμ?
κ°μ¬!
μλ νμΈμ @agusguerra10μ λλ€!
μ΄λ―Έμ§μμ CGRect
κ°λ§ μνλ©΄ μν λͺ¨λμμλ - (void)cropViewController:(TOCropViewController *)cropViewController didCropImageToRect:(CGRect)cropRect angle:(NSInteger)angle
λ리μ λ©μλλ₯Ό ꡬννλ©΄ λ©λλ€. :)
ν΄λΉ μ΄λ―Έμ§μ μ μ¬κ°ν μ¬λ³Έμ μνλ κ²½μ° - (void)cropViewController:(TOCropViewController *)cropViewController didCropToImage:(UIImage *)image withRect:(CGRect)cropRect angle:(NSInteger)angle
ꡬνν μλ μμ΅λλ€.
λμμ΄ λμκΈ°λ₯Ό λ°λλλ€! λ€λ₯Έ κ²μ μ°Ύκ³ κ³μλ€λ©΄ μλ €μ£ΌμΈμ!
λ! λ€μκ³Ό κ°μ μ¬μ€μ λͺ°λμ΅λλ€.
- (void)cropViewController:(TOCropViewController *)cropViewController didCropToImage:(UIImage *)image withRect:(CGRect)cropRect angle:(NSInteger)angle
μλ₯΄κΈ° μμμ μνμΌλ‘ μ€μ ν΄λ λ리μκ° νΈμΆλμμ΅λλ€. :)
κ³ λ§μμ ν! 건배!
μꡬμ€.
μ λ§?
λλ μ΄ μ§λ¬Έμ λν λ΅μ μ°Ύκ³ μλ€.
μ€νμΌμ μνμΌλ‘ μ€μ νμ΅λλ€.
κ·Έλ¬λ λ리μ ν¨μλ₯Ό νΈμΆνμ§ λ§μμμ€.
func cropViewController(_ cropViewController: TOCropViewController, didCropToImage μ΄λ―Έμ§: UIImage, rect μλ₯΄κΈ°Rect: CGRect, κ°λ: Int)
λλ λ¬Έμ λ₯Ό ν΄κ²°νλ€
μλ₯΄κΈ° μμμ μνμΌλ‘ μ€μ ν κ²½μ°μλ μ΄ λ리μ λ©μλκ° νΈμΆλ©λλ€.
λ리μμμ - (nullμ΄ μλ UIImage *)croppedImageWithFrame:(CGRect)frame angle:(NSInteger)angle circleClip:(BOOL)circular;
μ¬λ°λ₯Έ μ΄λ―Έμ§λ₯Ό μ»κΈ° μν΄ μλ₯΄μμμ€. νμ§λ§ circleClipμ falseλ‘ μ€μ ν΄μΌ ν©λλ€.
Timμκ² λ¬»κ³ μΆμ΅λλ€. λ§λμ?
agusguerra10μ΄ λ§ν κ²μ λ΄ νλ‘μ νΈμμ νΈμΆλμ§ μμ΅λλ€. xcode9 μ€μννΈ4.
κ±±μ λ§μΈμ @agusguerra10! λ€, λμ΄μΌλ³΄λ©΄, λΈλ¦¬κ²μ΄νΈκ° ꡬνν λΈλ¦¬κ²μ΄νΈ λ©μλλ₯Ό κΈ°λ°μΌλ‘ νλ λ‘μ§μ κΈ°λ°μΌλ‘ νλ νλ₯ν ν¨ν΄μ μλμμ΅λλ€. μ½κ°μ νΌλμ μΌκΈ°νμ΅λλ€. π
@agusguerra10 λ°©κΈ λ리μ μ½λ°±μ μ²λ¦¬ νλ
μ΄κ²μ΄ λ³κ²½λμ΄μΌ νλ€κ³ μκ°λλ©΄ μ λ¬Έμ μμ μΆμ νλ κ²μ΄ λ λμ μ μμ΅λλ€. κ°μ¬! :)
κ°μ₯ μ μ©ν λκΈ
λ! λ€μκ³Ό κ°μ μ¬μ€μ λͺ°λμ΅λλ€.
- (void)cropViewController:(TOCropViewController *)cropViewController didCropToImage:(UIImage *)image withRect:(CGRect)cropRect angle:(NSInteger)angle
μλ₯΄κΈ° μμμ μνμΌλ‘ μ€μ ν΄λ λ리μκ° νΈμΆλμμ΅λλ€. :)
κ³ λ§μμ ν! 건배!
μꡬμ€.