나는 이런 식으로 움직이기를 원합니다.
그림을 앱의 특정 위치에 정렬
사용자는 응용 프로그램에서 사진 버튼을 밀어 사진을 촬영합니다.
사진을 찍은 후 사용자가 세부 사항을 입력해야합니다. 사용자가 8 개의 다른 기본 장르를 선택할 수있는 정렬 옵션이 나오고 사용자가 저장을 푸시합니다.
홈 화면으로 돌아가서 푸시 된 그림이 응용 프로그램에 저장된 커버 플로우 (흐름 표지)로 나오면 사용자는 버튼 &에서 8 가지 장르를 볼 수 있습니다.
위와 같이 작동하지만 dosent가 작동하도록하고 싶습니다. 지금까지
내 코드입니다 : 당신이 다음 저장된 이미지를 사용하고자 할 때 당신은 위임 기능에 클릭 한 이미지를 저장하지 않는
@implementation ViewController
-(IBAction)TakePhoto {
picker = [[UIImagePickerController alloc]init];
picker.delegate = self;
[picker setSourceType: UIImagePickerControllerSourceTypeCamera ];
[self presentViewController:picker animated:YES completion:NULL];
}
-(IBAction)ChooseExisting{
picker2 = [[UIImagePickerController alloc]init];
picker2.delegate = self;
[picker2 setSourceType: UIImagePickerControllerSourceTypePhotoLibrary];
[self presentViewController:picker2 animated:YES completion:NULL];
}
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:
(NSDictionary *) info {
image = [info objectForKey:UIImagePickerControllerOriginalImage] ;
[imageview setImage:image];
[self dismissViewControllerAnimated:YES completion:NO];
}
- (void) imagePickerControllerDidCancel:(UIImagePickerController *)picker{
[self dismissViewControllerAnimated:YES completion:NULL];
}
@end
@implementation CVCLCoverFlowLayout
-(NSInteger)count {
return [self.collectionView numberOfItemsInSection:0 ];
}
-(CGSize)collectionViewContentSize{
CGSize size = self.collectionView.bounds.size;
size.width = self.count * self.cellInterval;
return size;
}
어떻게 작동하지 않습니까? 그것은 무엇을 잘못합니까? – Wain