ios - How to set a small image on a uiimage view on a particular position? -


i created uiview. need set small image on particular position.

i can setting image in small separate view. but, plan dynamically on large uiview full screen. thanks.

uiview *view = [[uiview alloc] initwithframe:cgrectmake(0,0,320,200)]; view.backgroundcolor=[uicolor clearcolor]; [self.view addsubview:view]; // add image in view uiimageview *imageview =[[uiimageview alloc] initwithframe:cgrectmake(50,50,20,20)]; imageview.image=[uiimage imagenamed:@"image.png"]; [view addsubview:imageview]; 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -