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
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
Here you are adding a blank view to another view. Maybe you don't see it because it is blank?
What is "something"?
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?