我想在我的應用程序中創建照片庫,我嘗試使用Three20和EGOPhotoViewer。我想使用EgoPhotoViewer,但我是編程新手,我不知道如何將EgoPhotoViewer安裝到我的應用程序中。當我嘗試使用它時,我得到了這個錯誤:如何在我的應用程序中安裝EGOPhotoViewer?
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MyPhoto", referenced from:
objc-class-ref in MasterViewController.o
"_OBJC_CLASS_$_MyPhotoSource", referenced from:
objc-class-ref in MasterViewController.o
"_OBJC_CLASS_$_EGOPhotoViewController", referenced from:
objc-class-ref in MasterViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有沒有這樣做的方法?
我又試了一次,但是當我嘗試執行以下代碼,我得到這個錯誤: – user1125231 2012-01-01 19:54:21
如果(indexPath.row == 0){ \t \t MyPhoto *照片= [[MyPhoto頁頭] initWithImageURL:[NSURL URLWithString :@ 「https://s3.amazonaws.com/twitter_production/profile_images/425948730/DF-Star-Logo.png」]名稱:@ 「lskdjf lksjdhfk jsdfh ksjdhf sjdhf ksjdhf ksdjfh ksdjh skdjfh skdfjh」]; MyPhotoSource * source = [[MyPhotoSource alloc] initWithPhotos:[NSArray arrayWithObjects:photo,nil]]; \t \t \t \t EGOPhotoViewController * photoController = [[EGOPhotoViewController alloc] initWithPhotoSource:source]; \t \t [self.navigationController pushViewController:photoController animated:YES]; \t} } – user1125231 2012-01-01 19:57:18
哪裏出錯? – CodaFi 2012-01-01 20:00:49