감사드립니다.
this sample project에서 "로그인"텍스트가 이미지의 일부인 것처럼 보이므로 불행히도이 텍스트를 변경할 수 없습니다. IBAction
을 사용하여 직접 버튼을 만들고 로그인 이벤트를 처리해야합니다.
는 내가 SDK의 최신 버전을 사용하여 내 자신의 예제 응용 프로그램을 만들었습니다. 보기 디버거를 통해 버튼을 보면 라벨이 있지만 헤더 파일에는 노출되지 않습니다.
//
// GPPSignInButton.h
// Google+ iOS SDK
//
// Copyright 2012 Google Inc.
//
// Use of this SDK is subject to the Google+ Platform Terms of Service:
// https://developers.google.com/+/terms
//
#import <UIKit/UIKit.h>
// The various layout styles supported by the GPPSignInButton.
// The minmum size of the button depends on the language used for text.
// The following dimensions (in points) fit for all languages:
// kGPPSignInButtonStyleStandard: 226 x 48
// kGPPSignInButtonStyleWide: 308 x 48
// kGPPSignInButtonStyleIconOnly: 46 x 48 (no text, fixed size)
typedef enum {
kGPPSignInButtonStyleStandard = 0,
kGPPSignInButtonStyleWide = 1,
kGPPSignInButtonStyleIconOnly = 2
} GPPSignInButtonStyle;
// The various color schemes supported by the GPPSignInButton.
typedef enum {
kGPPSignInButtonColorSchemeDark = 0,
kGPPSignInButtonColorSchemeLight = 1
} GPPSignInButtonColorScheme;
// This class provides the Google+ sign-in button. You can instantiate this
// class programmatically or from a NIB file. You should set up the
// |GPPSignIn| shared instance with your client ID and any additional scopes,
// implement the delegate methods for |GPPSignIn|, and add this button to your
// view hierarchy.
@interface GPPSignInButton : UIButton
// The layout style for the sign-in button. The default style is standard.
@property(nonatomic, assign) GPPSignInButtonStyle style;
// The color scheme for the sign-in. The default scheme is dark.
@property(nonatomic, assign) GPPSignInButtonColorScheme colorScheme;
@end
는 불행하게도 이것은 당신이 텍스트를 변경할 수 없음을 의미합니다.
출처
2015-01-05 21:27:05
JAL
당신은 다음을 의미합니다 : UILabel * label = obj; 권리? – jerrygdm