mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
first login view web site is now configurable
This commit is contained in:
parent
031219486b
commit
9bfcf9e663
3 changed files with 11 additions and 5 deletions
|
|
@ -37,7 +37,14 @@
|
|||
//[passwd setText:[[NSUserDefaults standardUserDefaults] stringForKey:@"password_preference"]];
|
||||
}
|
||||
|
||||
|
||||
-(void) viewDidLoad {
|
||||
NSString* siteUrl = [[NSUserDefaults standardUserDefaults] stringForKey:@"firt_login_view_url"];
|
||||
if (siteUrl==nil) {
|
||||
siteUrl=@"http://www.linphone.org";
|
||||
}
|
||||
[site setTitle:siteUrl forState:UIControlStateNormal];
|
||||
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[super dealloc];
|
||||
|
|
@ -51,7 +58,7 @@
|
|||
|
||||
-(void) doOk:(id)sender {
|
||||
if (sender == site) {
|
||||
NSURL *url = [NSURL URLWithString:@"http://www.linphone.org"];
|
||||
NSURL *url = [NSURL URLWithString:site.titleLabel.text];
|
||||
[[UIApplication sharedApplication] openURL:url];
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@
|
|||
<double key="NSSize">15</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<string key="IBUINormalTitle">http://www.linphone.org</string>
|
||||
<object class="NSColor" key="IBUIHighlightedTitleColor" id="992101396">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
|
|
@ -472,7 +471,7 @@
|
|||
</object>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>{{85, 76}, {320, 480}}</string>
|
||||
<string>{{85, 91}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<boolean value="NO"/>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ static void linphone_iphone_call_state(LinphoneCore *lc, LinphoneCall* call, Lin
|
|||
} else if (state == LinphoneRegistrationCleared || state == LinphoneRegistrationNone) {
|
||||
[registrationDelegate displayNotRegisteredFromUI:mCurrentViewController];
|
||||
} else if (state == LinphoneRegistrationFailed ) {
|
||||
NSString* lErrorMessage;
|
||||
NSString* lErrorMessage=nil;
|
||||
if (linphone_proxy_config_get_error(cfg) == LinphoneReasonBadCredentials) {
|
||||
lErrorMessage = @"Bad credentials, check your account settings";
|
||||
} else if (linphone_proxy_config_get_error(cfg) == LinphoneReasonNoResponse) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue