on 06-26-2015 4:17 AM
Dear All,
As title above, May I know how to customize MAFLogin setting profile at server port for http/htts and disable 'Show Detail' switch.
Thank you.
Regards
Marcus
Hi Marcus,
You can set default values for server port for Https/Http in the MAFLogonOperationContextDefaultValues.plist which is inside MAFLogonManagerNG.bundle. In the plist, for the key idMAFLogonOperationContextTypeRegister you can add two new items keyMAFLogonOperationContextServerPortSecure (for HTTPS) and keyMAFLogonOperationContextServerPortNonSecure (for HTTP) and set the default values to it.
And to disable the Show Details switch you can use the following code.
-(void)willRenderUIFromUIContext:(MAFLogonUIContext *)aUIContext
{
[[[[aUIContext rawValue] objectForKey:keyMAFLogonUIContextGroupDescriptors] objectAtIndex:1] setValue:[NSNumber numberWithInt:1] forKey:keyMAFLogonUIGroupDescriptorIsHiddenByDefault];
}
Regards,
Dhani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Choong,
Have you imported MAFLogonUICustomizationDelegate,.h file and confirmed to #import "MAFLogonUICustomizationDelegate" protocol in your header file?
#import "MAFLogonUICustomizationDelegate.h"
@interface MyLogonHandler : NSObject<MAFLogonUICustomizationDelegate>
You have to call these method in the class where you are calling logonFinishedWithError method.(To be presice, in the class where you are doing MAFLogonNGDelegate implementation)
Regards,
Dhani
Hi Dhani,
Thanks for pointing the right class to adding the code, i added those code but the 'Show Detail' switch still visible and allow to switch on to configure the port.
I want to disable the switch so that user cannot edit the server port and others configuration.
Please help.
Regards
Choong
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.