Need help to implement this Imagepicker library on iOS

I found this library xiaohange/JQImagePicker: iOS (github.com) is suitable for me to bring to my app.

Reading the Installation section, it says

  • 1.Drag all source files under folderJQImagePicker to your project.
  • 2.pod: JQImagePicker

Can I copy the JQImagePicker folder to my extension? Where should I put it in a folder? include or src?

Is there any defold extension I can learn from it?

This isn’t something you can just drag and drop and expect to work. You need to prepare a native extension for it.

1 Like

Yes I mean where to put it at my extension so that I can use it

If you read the link I shared above, you’ll see there are pre-defined folders. You have to put them accordingly.
And there is more:

You have two options here. You can copy the source code of this project into a Defold native extension and set it up, letting the Defold build server handle the building. Or, you can build this project in Xcode as a library and add it to the native extension accordingly. I recommend you to go with 2. option.

I would choose option 1 since I don’t own a mac and not familar with macos and ios so I don’t have skills to build it as a library. Can you please more specific which folder of extension I can put the library code into it?

Can I put the JQImagePicker into /libs/ios/?

Sorry, this is not an easy task; it requires time and effort to examine the project you’ve shared. I don’t have that much time to dedicate to this project, but maybe someone else can help.

2 Likes

You have two options according to the installation instuctions:

Option 1: Drag all source files under floder JQImagePicker to your project.
Option 2: Install it as a cocoapod (JQImagePicker on CocoaPods.org)

Dragging these four files into your extension src folder should be enough:

Ah, I thought those were 2 steps :smiley:
Thanks, I’ll choose option 2. option 1 is also easy as your guide

1 Like