I need to create a transparent UIView with an UIActivityIndicator and an UIImage on it.
I found a code from a tutorial as in how to create the Round edge UIView.
-
Can someone help me call this
UIViewfrom myUIViewControllerclass. (To call aUIViewConrollerfrom anotherUIViewControllerwe use the following code;)ViewOne *v1 = [ViewOne alloc] initWithNibName:nil bundle:nil];
[self.navigationController v1 animated:YES];
but this doesn’t work when calling UIView’s. So how can i call it ?
- To add an UIImage and a UIActivity indicator programatically to the UIView ?
Every view controller has a view property. Just use
UIView *yourView = yourViewController.viewto get it. From there you can use[yourView addSubView:someOtherView]to add the activity indicator and the image, as well as setting the transparency.