title: ios "Data Loading" Notification with transparent background
body: <p>I am trying to create a view in iOS to let the user know their data is loading... it should have about a 200x200 Rounded-corner box in the middle with a spinner and the words "Data Loading..." and a transparent background.</p>
  
  <p>This all is working except my 200x200 rounded-corner box is also transparent. </p>
  
  <p>Here is the code I am using:</p>
  
  <pre><code>UIView *loadingDataView = [[UIView alloc] initWithFrame:CGRectMake(0, 44, 320, 367)];
  loadingDataView.alpha = 0.4;
  loadingDataView.backgroundColor = [UIColor clearColor];
  UIView *viewWithSpinner = [[UIView alloc] initWithFrame:CGRectMake(110, 106, 100, 100)];
  [viewWithSpinner.layer setCornerRadius:15.0f];
  viewWithSpinner.backgroundColor = [UIColor blackColor];
  UILabel *msg = [[UILabel alloc] initWithFrame:CGRectMake(5, 75, 90, 20)];
  UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(5, 5, 90, 70)];
  spinner.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
  [spinner startAnimating];
  msg.text = @"Data Loading";
  msg.font = [UIFont systemFontOfSize:14];
  msg.textAlignment = UITextAlignmentCenter;
  msg.textColor = [UIColor whiteColor];
  msg.backgroundColor = [UIColor clearColor];
  viewWithSpinner.opaque = NO;
  viewWithSpinner.backgroundColor = [UIColor blackColor];
  [viewWithSpinner addSubview:spinner];
  [viewWithSpinner addSubview:msg];
  [loadingDataView addSubview:viewWithSpinner];
  [self.view addSubview:loadingDataView];
  </code></pre>
  
  <p>Thanks.</p>