Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Edit Tool in iOS is different than Android 6 years 3 months ago #13284

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
Hello,

Thank you..i saw beta version sdk but its in objective c. i want in swift 3.. can you provide link for swift 3.

Thank you

Please Log in or Create an account to join the conversation.

Edit Tool in iOS is different than Android 6 years 3 months ago #13285

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
Hello,

I saw beta version but its in objective c.. i want in swift 3 ..can you please provide link for that.


Thank you,

Please Log in or Create an account to join the conversation.

Edit Tool in iOS is different than Android 6 years 3 months ago #13286

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
I'm Dario from sales.

Actually we're offering swift not exposing many API.
It's a choice drove by our actual market.
The swift module shares the same sources of Cordova and Xamarin for iOS modules.
We distribute full objective-c sources which you should customize to obtain your own Swift interface so you should be simple for you to merge demo project and swift's framework to obtain the needed result.

Swift module won't be updated until the end of January or first half of February.
Even if aren't planning to introduce new available API it will contain updated UI layout.
The following user(s) said Thank You: rishikesh@appristine.in

Please Log in or Create an account to join the conversation.

Edit Tool in iOS is different than Android 6 years 3 months ago #13308

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Edit Tool in iOS is different than Android 6 years 3 months ago #13312

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

if you want to change an existing icon, you can replace it in the icon assets of the Swift project.
If you want to add a new button in reader's toolbar, you have to customize the Obj-C code and create your custom static library to use in Swift.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum