tags:

views:

175

answers:

2

i want to add a uiview of smaller frame as subview to parental view but i am not getting the needed

uiview *view = [[uiview alloc] initwithFrame:something]; [self.view addsubview:view];

can anyone suggest me the answer

A: 

Here you are adding a blank view to another view. Maybe you don't see it because it is blank?

What is "something"?

mahboudz
i am giving a frame in place of something
Gani
A: 

Have you tried - (void)bringSubviewToFront:(UIView *)view? It might be that you're adding this subview somewhere in the view hierarchy where it's obscured. In your code fragment there, you would add:

[self.view bringSubviewToFront:view];

Of course, without supplying more code (preferably directly from your project, and which actually compiles), I'm just guessing. What were you expecting to happen? What actually happened?

Paul A. Hoadley