Hello Team,
i want to add new icon. how can i add.
let plugin: RadaeePDFPlugin = self.pluginInit()
plugin.setDelegate(self);
let reader = plugin.show(destinationFileUrl.path, withPassword: "")
if (reader != nil) {
self.navigationController?.isNavigationBarHidden = false
let vc: UIViewController = reader as! UIViewController
self.navigationController?.navigationBar.barTintColor = UIColor.white
self.navigationController?.navigationBar.isTranslucent = false;
self.navigationController?.navigationBar.tintColor = UIColor.black
self.navigationController?.pushViewController(vc, animated: true)
let btn1 = UIButton(type: .custom)
btn1.setImage(UIImage(named: "info_icon"), for: .normal)
btn1.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
// btn1.addTarget(self, action: #selector(Class.Methodname), for: .touchUpInside)
let item1 = UIBarButtonItem(customView: btn1)
let btn2 = UIButton(type: .custom)
btn2.setImage(UIImage(named: "info_icon"), for: .normal)
btn2.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
// btn2.addTarget(self, action: #selector(Class.MethodName), for: .touchUpInside)
let item2 = UIBarButtonItem(customView: btn2)
navigationController?.navigationItem.setRightBarButtonItems([item1,item2], animated: true)
self.alert.dismiss(withClickedButtonIndex: -1, animated: true)
} else {
let alert = UIAlertController(title: "Warning", message: "Cannot open the reader, please check the file path", preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: nil))
self.present(alert, animated: true, completion: nil)
self.alert.dismiss(withClickedButtonIndex: -1, animated: true)
}
Not works.
Thank you