본문 바로가기

[아이폰] how to use JSON in your app how to use JSON in your app. (click the images to enlarge)1.) Download the latest version (currently 2.2.1) fromhttp://code.google.com/p/json-framework/downloads/list2.) Open the dmg, and drag the JSON folder into your project in Xcode. Check “Copy items into destination group’s folder (if needed)” when prompted.3.) Once the source is embedded into your project, you need to import the framework .. 더보기
[아이폰] UIImage : 웹 그림 표시 아래의 설명에 따라 작성해 보았습니다.인터페이스 빌더에 userImageView을 IBOutlet 으로 설정후 아래와 같이 했습니다. NSString *string1 = @"https://graph.facebook.com/"; NSString *string2 = @"/picture"; NSString *string3 = [string1 stringByAppendingString:self.feedPostId]; NSString *string4 = [string3 stringByAppendingString:string2]; // 문자열 합치기 // 이미지를 읽어올 주소 NSURL *url = [NSURL URLWithString:string4]; NSData *data = [NSData dataWithCon.. 더보기
_OBJC_CLASS_ error 1 _OBJC_CLASS_ error 은 사용하는 클래스를 붙여 넣기 하거나 갖다 사용할 경우 framework 나 compile 파일에 추가되지 않을때 발생하는 에러이다.프로젝트에 build Phases 에 complie source을 확인하여 추가해주면 된다. 여기서 주의 할점은 c 만 확인하여 copy bundle resources에 추가하면 안된다는 것이다. 2xcode 소스 디렉토리바에서 오른쪽 마우스 누르고 ADD file 을 해주면,메모리 와 리소스를 자동으로 xcode에서 맞춰주게 된다. 그러면 위에 1번의 과정이 필요없게 되는것이며, 난 이것을 추천한다. !!!남의 소스를 갖고 올땐 어려움이 많네요. ㅋ dfadf[출처] [iphone] _OBJC_CLASS_$_MPMoviePlayerV.. 더보기