-
[iPhone 프로그래밍] UITableView에서 이미지 동적으로 불러오기0x05 Programming/iPhone Programing 2011. 1. 11. 10:59
아이폰 프로그래밍을 하다보면 UITableView에서 여러장의 이미지를 빠르게 로딩시켜야 하는 경우가 있습니다. 이경우에 그냥 UIImageView를 이용하여 로딩하다보면 셀이 버벅거리면서 앱이 죽어버리는 경우를 볼수가 있는데요 여러장의 이미지를 빠르게 비동기적으로 불러오기위해 만들어놓은 AsyncImageView라는 것이 있습니다. 제가 첨부해놓은 파일을 이용하시면됩니다. 사용법은 다음과 같습니다. #import "AsyncImageView.h" AsyncImageView *asyncImageView = nil; // 위치를 잡아줍니다. CGRect frame; frame.origin.x = 0; frame.origin.y = 0; frame.size.width = 60; frame.size.heigh..
-
[iPhone 프로그래밍] UINavigationController 알아보기 !0x05 Programming/iPhone Programing 2010. 12. 17. 16:28
UINavigationController를 사용할때 쓸만한 내용을 발견하여 정리해 봅니다. 1. 초기화 UINavigationController의 초기화를 위해서는 보통 가장 루트가 되는 뷰컨트롤러를 지정하게 됩니다. UIViewController *viewController = [[UIViewController alloc] init]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController]; 2. 새로운 뷰로 이동하기/빠져 나오기 새로운뷰로 이동하는것은 다음과 이해하시면 좋을것 같습니다. 네비게이션컨트롤러는 기본적으로 스택(Stack)과 같은 구조로 동작..
-
[iPhone 프로그래밍] EXC_BAD_ACCESS 디버깅하기0x05 Programming/iPhone Programing 2010. 11. 30. 22:04
아이폰 개발을 하다보면, 디버깅 상태에서도 그냥 띡하니 EXC_BAD_ACCESS 한 마디만 툭 내뱉고 어플리케이션이 종료되어 버리거나 하는 경우를 종종 볼 수 있다. 윈도우에서 어플리케이션을 개발해왔던터라 윈도우에서 개발할때는 보통 개발툴이 이미 해제된 메모리 주소를 가진 포인터에 접근하거나 기타 오류 상황에서 상당부분 오류가 난 소스의 위치를 찝어주는데, Xcode에서는 떡하니 뭔가 나 죽어요...라고만하고 핑 종료되어버려서 당황스러웠다. 디버거 콘솔에 딱히 뭔가 참고할만한 정보도 별로 없이 죽는경우도 많다. 이런 경우 디버거 콘솔에 조금 더 자세한 정보를 출력하도록 할 수 있는데, 아래처럼 설정해주면 된다. Group & Files 의 Excutables에서 선택을 해주고, 메인툴바에 Info 버튼..
-
[iPhone 프로그래밍] UITableView DataSource 기본틀0x05 Programming/iPhone Programing 2010. 11. 16. 12:48
필요할때 쓰기위해 남겨둡니다. ㅎㅎ - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return 1; } // Customize the number of rows in the table view. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 0; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"..
-
[iPhone 프로그래밍] MGTwitterEngine 간단한 설명0x05 Programming/iPhone Programing 2010. 11. 11. 15:18
svn으로 MGTwitterEngine 받아오기 ----------------------------------------------------------------------------- 출처 : http://creative-xenos.tistory.com/tag/MGTwitterEngine ----------------------------------------------------------------------------- 1. XCode에서 SCM-Configure SCM Repositories.. 를 선택 2. 아래에 +버튼을 누르고, Name에는 MGTwitterEngine를 입력 3. URL에 http://svn.cocoasourcecode.com 를 입력 (이 주소는 http://mattg..
-
[iPhone 프로그래밍] 쓸만한 함수들 .0x05 Programming/iPhone Programing 2010. 11. 10. 15:26
> Stanford Lecture #7 * Push to add a view controller - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated; * Pop to remove a view controller - (void)popViewControllerAnimated:(BOOL)animated; * Pushing your first view controller - (void)applicationDidFinishLaunching:(UIApplication *)application { navController = [[UINavigationController alloc] init]; [navControll..