http://www.4shared.com/dir/-PGqZEXR/zoominzoomout.html 당신의 프로젝트에이 파일을 추가하고 호출이 함수를 통해
여기 IM2가있는 UIView이며, 지금이 첨부 내가 그것을 다음이
- (void)viewDidLoad {
[self loadFlowersInView:im2];
[self.view addSubview:im2];
}
처럼보기 didload 통해 전달에 이미지를 붙여 함수는 다음과 같습니다.
- (void) loadFlowersInView: (UIView *) backdrop {
NSString *create_button = nil; // Add the flowers to random points on the screen
for (int i = 0; i < 1; i++) {
MagPicAppDelegate *appdelegate = (MagPicAppDelegate *)[[UIApplication sharedApplication] delegate];
NSString *whichFlower = appdelegate.imageName;
UIImage *stemp = [UIImage imageNamed:@"approve.png"];
DragView *dragger = [[DragView alloc] initWithImage:stemp];
dragger.userInteractionEnabled = YES;
dragger.center = CGPointMake(160.0f, 140.0f);
[im2 addSubview:dragger];
[dragger release];
}
[self.view addSubview:im2];
[im2 release];
}
'addSubview :'는 아무것도 자체적으로 움직이지 않습니다. 텍스트보기를 정확히 표시하려면 어떻게합니까? – BoltClock
textview가 UIViewAnimationTransitionCurlDown과 함께 나타나길 원합니다. 어떻게해야합니까? – JTheIslander