vim 설정을 미리 해뒀으면 바로 사용 가능

command창에서 수정할 파일만 두고 맨 첫번째 줄에 로그를 작성하면 됨

1
2
3
4
5
UIImage *image = [UIImage imageNamed:imagePath];
NSDictionary *dic = @{
      @"picture" : UIImagePNGRepresentation(image),
      @"caption" : message
};
cs



부분에서 imageNamed 가 캐쉬를 일으켜 같은 이름의 다른 파일을 올릴때 전의 이미지를 계속 업로드 하게 되어버림https://developer.apple.com/documentation/uikit/uiimage/1624146-imagenamed


캐쉬를 쓰지 않게 하려면 

imageWithContentsOfFile:

을 사용해야 함

'IOS' 카테고리의 다른 글

Mac에서 svn command 사용하기  (0) 2019.02.26
unable to dequeue a cell with identifier reuseIdentifier  (0) 2017.08.28
ios model명 가져오기  (0) 2017.07.10
ios 10.3 mapview plist 권한 설정  (0) 2017.05.10

'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier reuseIdentifier - must register a nib or a class for the identifier or connect a prototype cell in a storyboard' tableview

잘 보면 답이 보임 

cell with identifier <<<<<<<


tableView를 오버라이드 한 파일 만들때 주석으로 만들어주는 함수에 보면 

let cell = tableView.dequeuereusableCell(withIdentifier : "~~~~"가 있는데


~~~~ 자리에 내가 설정한 cell의 identifier를 넣어주지 않았기 때문에 발생

https://stackoverflow.com/questions/29282447/unable-to-dequeue-a-cell-with-identifier-cell-must-register-a-nib-or-a-class-f

https://www.theiphonewiki.com/wiki/Models


NSString *phoneModel = [[UIDevice currentDevice] model];


iphone6 기기인데 iphone7,1이라고 나와서 동공지진 했더니 Identifier가 iphone7,1로 나온다.

기기모델명을 검색해서 Identifier를 확인할것.



[[UIDevice currentDevice] model]는 모델명을 반환하는게 아니라 Identifier를 반환함

Privacy - Location Always Usage Description

Privacy - Location When In Use Usage Description


둘다 추가해서 사용해야함



또 맵이 격자무늬만 있고 안나온다면

프로젝트 껐다 켜라

http://stackoverflow.com/questions/12638206/ios-mkmapview-not-displaying-map-in-the-simulator



+ Recent posts