Applozic SDK provides various UI settings to customise chat view easily. If you are using ALChatManager.h explained in the earlier section, you can put all your settings in below method.
-(void)ALDefaultChatViewSettings;
If you have your own implementation, you should set UI Customization setting on successfull registration of user.
Below section explains UI settings provided by Applozic SDK.
Objective-C
[ALApplozicSettings setColorForReceiveMessages: [UIColor colorWithRed:255.0/255 green:255.0/255 blue:255.0/255 alpha:1]];
Swift
ALApplozicSettings.setColorForReceiveMessages(UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha:1))
Objective-C
[ALApplozicSettings setColorForSendMessages: [UIColor colorWithRed:66.0/255 green:173.0/255 blue:247.0/255 alpha:1]];
Swift
ALApplozicSettings.setColorForSendMessages(UIColor(red: 66.0/255, green: 173.0/255, blue: 247.0/255, alpha:1))
Objective-C
[ALApplozicSettings setChatWallpaperImageName:@"<WALLPAPER NAME>"];
Swift
ALApplozicSettings.setChatWallpaperImageName("<WALLPAPER NAME>")
Hide/Show profile Image
Objective-C
[ALApplozicSettings setUserProfileHidden: NO];
Swift
ALApplozicSettings.setUserProfileHidden(false)
Hide/Show Refresh Button
Objective-C
[ALApplozicSettings hideRefreshButton: NO];
Swift
ALApplozicSettings.hideRefreshButton(flag)
Chat Title
Objective-C
[ALApplozicSettings setTitleForConversationScreen: @"Recent Chats"];
Swift
ALApplozicSettings.setTitleForConversationScreen("Recent Chats")
Objective-C
[ALApplozicSettings setGroupOption: YES];
Swift
ALApplozicSettings.setGroupOption(true)
This method is used when group feature is required . It will disable group functionality when set to NO.
Objective-C
[ALApplozicSettings setGroupExitOption:YES];
Swift
ALApplozicSettings.setGroupExitOption(true)
Objective-C
[ALApplozicSettings setGroupMemberAddOption:YES];
Swift
ALApplozicSettings.setGroupMemberAddOption(true)
Objective-C
[ALApplozicSettings setGroupMemberRemoveOption:YES];
Swift
ALApplozicSettings.setGroupMemberRemoveOption(true)
Objective-C
[ALApplozicSettings setGroupInfoDisabled:YES];
Swift
ALApplozicSettings.setGroupInfoDisabled(true)
Objective-C
[ALApplozicSettings setGroupInfoEditDisabled:YES];
Swift
ALApplozicSettings.setGroupInfoEditDisabled(true)
Objective-C
[ALApplozicSettings setColorForNavigation: [UIColor colorWithRed:66.0/255 green:173.0/255 blue:247.0/255 alpha:1]];
Swift
ALApplozicSettings.setColorForNavigation(UIColor(red: 66.0/255, green: 173.0/255, blue: 247.0/255, alpha:1))
Objective-C
[ALApplozicSettings setColorForNavigationItem: [UIColor whiteColor]];
Swift
ALApplozicSettings.setColorForNavigationItem(UIColor.whiteColor())
Objective-C
[ALUserDefaultsHandler setBottomTabBarHidden: YES];
Swift
ALUserDefaultsHandler.setBottomTabBarHidden(true)
Objective-C
[ALApplozicSettings setFontaFace: @"Helvetica"];
Swift
ALApplozicSettings.setFontFace("Helvetica")
For complete control over UI, you can also download open source chat UI toolkit and change it as per your designs :
https://github.com/AppLozic/Applozic-iOS-SDK
Import Applozic iOS Library into your Xcode project.
Applozic contains the UI related source code, icons, views and other resources which you can customize based on your design needs.
Sample app with integration is available under sampleapp