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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -