05-19 00:03
Notice
Recent Posts
Recent Comments
Link
코딩일지
retrofit 이용한 안드로이드와 서버 간 네트워킹
먼저 gradle파일에 compile부분을 추가해줍니다. 그러면 retrofit에 해당하는 문법이 자동완성됩니다. 예))dependencies { . . compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0' }
코딩/안드로이드
2017. 4. 5. 20:13
버튼에 이미지 삽입하기
* UIButton에 이미지 삽입하기 1. 사용할 이미지를 상수 변수로 선언 let heart : UIImage = UIImage(named:"heart")! // 채운 하트 모양 let no_heart : UIImage = UIImage(named:"no-heart")! // 빈 하트 모양 2. 해당 버튼에 setImage함수 이용하여 변수 대입 clickBtn.setImage(no_heart, for: UIControlState.normal)clickBtn.setImage(heart, for: UIControlState.normal)
코딩/iOS
2017. 3. 30. 20:55