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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -