39 NSLog(
@"GmailViewHeader.appear: size: %3.2f x %3.2f",
40 [
self bounds].size.width, [
self bounds].size.height);
44 Boolean isLoggedIn = [[loginControl
signedIn] boolValue];
46 [
self.contentView setBackgroundColor:[UIColor brownColor]];
48 CGRect loginInfoLabelFrame = CGRectMake(2.0, 2.0, bound.size.width/2,
loginInfoViewHeight - 4.0);
50 loginInfoLabel = [[UILabel alloc] initWithFrame:loginInfoLabelFrame];
51 [loginInfoLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16.0]];
52 [loginInfoLabel setTextAlignment:NSTextAlignmentCenter];
55 [
self addSubview:loginInfoLabel];
56 NSString *loginName = [[_msgHeaderDelegate getLoggedInProfile] name];
57 [loginInfoLabel setText:loginName];
60 CGRect signInButtonFrame = CGRectMake(bound.size.width/2 + 2,
62 bound.size.width/2 - 4,
70 signIn.
uiDelegate = (id<GIDSignInUIDelegate>)_msgHeaderDelegate;
74 [_signInButton setFrame:signInButtonFrame];
75 _signInButton.layer.cornerRadius = 8;
76 _signInButton.layer.borderColor = [[UIColor blackColor] CGColor];
77 _signInButton.layer.borderWidth = 3.0;
78 _signInButton .clipsToBounds = YES;
79 [
self addSubview:_signInButton];
id< GIDSignInDelegate > delegate
instancetype sharedInstance()
id< GIDSignInUIDelegate > uiDelegate
Singleton interface to both core and remote data sources.
GIDSignIn * sharedInstance()
void configureGoogleSignIn()