Lines Matching refs:self
34 self.activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
35 self.blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
36 self.vibrancyView = [[UIVisualEffectView alloc] initWithEffect:[UIVibrancyEffect effectForBlurEffect:self.blurEffect]];
37 self = [super initWithEffect:self.blurEffect];
38 if (self) {
39 [self setUp:message];
41 return self;
45 self.label = [[UILabel alloc] init];
46 self.label.text = message;
47 [self.contentView addSubview:self.vibrancyView];
48 [self.vibrancyView.contentView addSubview:self.activityIndicator];
49 [self.vibrancyView.contentView addSubview:self.label];
50 [self.activityIndicator startAnimating];
56 if (self.superview) {
57 CGFloat width = self.superview.frame.size.width / 1.5;
59 self.frame = CGRectMake(self.superview.frame.size.width / 2 - width / 2,
60 self.superview.frame.size.height / 2 - height / 2,
63 self.vibrancyView.frame = self.bounds;
66 self.activityIndicator.frame = CGRectMake(5, height / 2 - activityIndicatorSize / 2,
70 self.layer.cornerRadius = 8.0;
71 self.layer.masksToBounds = true;
72 self.label.textAlignment = NSTextAlignmentCenter;
73 self.label.frame = CGRectMake(activityIndicatorSize + 5, 0, width - activityIndicatorSize - 15, height);
74 self.label.textColor = [UIColor grayColor];
75 self.label.font = [UIFont systemFontOfSize:16];