storyboard 에서 view 를 만들어 놓았다.
AssistantView.m
welcomeview 에서 원하는 버튼을 누른다
gotoCreateAccountButton --> IBAction onGotoLoginClick --> nextview = _loginView
gotoLinphoneSpecificFeatureWarningButton --> IBAction onGotoLoginClick0 --> nextview = _loginView0
- (IBAction)onGotoLoginClick:(id)sender { //<-----버튼에 IBAction
ONCLICKBUTTON(sender, 100, {
nextView = _loginView; // nextview 지정
[self loadAssistantConfig:@"assistant_external_sip.rc"]; //<----파일을 로드하고 loginView 뷰를 뛰운다. loadAssistantConfig 이용
});
}
- (IBAction)onGotoLoginClick0:(id)sender { //<-----버튼에 IBAction
ONCLICKBUTTON(sender, 100, {
nextView = _loginView0;
[self loadAssistantConfig:@"assistant_external_sip.rc"]; //<----파일을 로드하고 loginView0 뷰를 뛰운다 loadAssistantConfig 이용
});
}
- (id)init {
+ (UICompositeViewDescription *)compositeViewDescription {
- (UICompositeViewDescription *)compositeViewDescription {
- (IBAction)onContactTap {
- (void)viewDidLoad {
- (void)viewWillAppear:(BOOL)animated {
- (void)viewWillDisappear:(BOOL)animated {
- (void)fitContent {
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction {
- (void)resetLiblinphone:(BOOL)core {
- (void)loadAssistantConfig:(NSString *)rcFilename {//<------설정 파일을 읽어들이고 nextview 뷰를 뛰운다
[self changeView:nextView back:FALSE animation:TRUE];
- (void)reset {
- (void)clearHistory {
+ (NSString *)StringForXMLRPCError:(const char *)err {
- (void)enableWelcomeViewButtons {
+ (NSString *)errorForLinphoneAccountCreatorPhoneNumberStatus:(LinphoneAccountCreatorPhoneNumberStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorUsernameStatus:(LinphoneAccountCreatorUsernameStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorEmailStatus:(LinphoneAccountCreatorEmailStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorPasswordStatus:(LinphoneAccountCreatorPasswordStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorActivationCodeStatus:(LinphoneAccountCreatorActivationCodeStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorStatus:(LinphoneAccountCreatorStatus)status {
+ (NSString *)errorForLinphoneAccountCreatorDomainStatus:(LinphoneAccountCreatorDomainStatus)status {
- (void)configureAccount {
- (void)displayAssistantConfigurationError {
- (void)changeView:(UIView *)view back:(BOOL)back animation:(BOOL)animation {
- (void)addDoneButtonRecursivelyInView:(UIView *)subview {
- (void)fillDefaultValues {
- (void)resetTextFields {
+ (void)cleanTextField:(UIView *)view {
- (UIView *)findView:(ViewElement)tag inView:view ofType:(Class)type {
- (UIAssistantTextField *)findTextField:(ViewElement)tag {
- (UIRoundBorderedButton *)findButton:(ViewElement)tag {
- (UILabel *)findLabel:(ViewElement)tag {
- (void)prepareErrorLabels {
-(NSString *) addSchemeToProvisiionninUriIMissing:(NSString *)uri {
- (void)shouldEnableNextButton {
- (BOOL) checkFields {
- (void)registrationUpdateEvent:(NSNotification *)notif {
- (void)registrationUpdate:(LinphoneRegistrationState)state
- (void)configuringUpdate:(NSNotification *)notif {
- (void)showErrorPopup:(const char *)error {
- (void)isAccountUsed:(LinphoneAccountCreatorStatus)status withResp:(const char *)resp {
- (void) isAccountActivated:(const char *)resp {
- (void)textFieldDidBeginEditing:(UITextField *)textField {
- (void)textFieldDidEndEditing:(UITextField *)textField {
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
- (BOOL)textField:(UITextField *)textField
- (IBAction)onGotoCreateAccountClick:(id)sender {
- (IBAction)onGotoLinphoneLoginClick:(id)sender {
- (IBAction)onGotoLoginClick:(id)sender {
- (IBAction)onGotoLoginClick0:(id)sender {
- (IBAction)onGoToNonLinphoneInfoPage:(id)sender {
- (IBAction)onGotoRemoteProvisioningClick:(id)sender {
- (IBAction)onCreateAccountClick:(id)sender {
- (IBAction)onCreateAccountActivationClick:(id)sender {
- (IBAction)onCreateAccountCheckActivatedClick:(id)sender {
- (IBAction)onLinkAccountClick:(id)sender {
- (IBAction)onLinphoneLoginClick:(id)sender {
- (IBAction)onLoginClick:(id)sender {
- (IBAction)onRemoteProvisioningLoginClick:(id)sender {
- (IBAction)onRemoteProvisioningDownloadClick:(id)sender {
- (IBAction)onLaunchQRCodeView:(id)sender {
- (void)refreshYourUsername {
- (IBAction)onFormSwitchToggle:(UISwitch*)sender {
- (IBAction)onCountryCodeClick:(id)sender {
- (void)updateCountry:(BOOL)force {
- (IBAction)onCountryCodeFieldChange:(id)sender {
- (IBAction)onCountryCodeFieldEnd:(id)sender {
- (IBAction)onPhoneNumberDisclosureClick:(id)sender {
- (IBAction)onBackClick:(id)sender {
- (IBAction)onDialerClick:(id)sender {
- (IBAction)onLinkTap:(id)sender {
- (IBAction)onAcceptTermsClick:(id)sender {
- (void)didSelectCountry:(NSDictionary *)country {
-(void)qrCodeFound:(NSNotification *)notif {
- (NSString*) getUUID
- (NSString*) getCountryCode
- (void)sendDataToServer:(NSString *)method user:(NSString *)usrname pass:(NSString *)pass{