How to reuse default iphone app feature in my app? - ios

My app need to create user avatar. During the process, it allows user to edit the selected image. I found that in Apple camera app has edit image feature. How can i reuse that feature in my app?

You can't reuse Apple's APP but SDK. As I'm aware Photos and PhotosUI were designed for photo display and edit. Just search them in Apple Developer Website.

Related

how can I show selected image in Photos app

currently in my app I'm fetching the images from Photos app and showing them in my app.
in my app when user click the image
I want to open Photos app with selected image ,is there any way to do this?
You can't do that.
Also, There is not officially documented way to open Photos App as well.
You might, still open the Photos application using photos-redirect:// url scheme but this is also not documented by Apple to use so you might face some problems with it during the review process.
Opening to certain pre-selected photo in the Photos application is not possible.

How to get the iOS Camera suggest my app when snapping a QR code

I want the Camera App that comes with an iPhone to recommend a QR code be opened up in my app. My first question is, if two or more apps register the same universal link, which app gets suggested.
For instance I removed one app that kept on being recommended. Then suddenly another app starts getting recommended. How does a user or developer control this.
Have a look at Apple's guide for implementing Universal Links. In short, your website must upload a JSON file at a specific location that tells iOS which apps can be associated with the website domain. Here is an example file used by the NBC app.

Swift - how to access all pdf files on device

I am trying to build an app that will allow users to see all pdf files that are on the device (in some kind of a list with a preview) [Regardless of which app it belongs to on the device, all should be shown]. Is there anyway to achieve this?
Sorry but this is not possible on an iOS device because of a feature called sandboxing. Apple does not allow an app to access the sandbox of another app. Each app sits inside a sandbox of its own. This is iOS's security feature. There is no way to go around this feature.
Reference - About App Sandbox

How can I show my app in the menu that is displayed when text is selected in another iOS app?

Let's say I am in Safari and I select some text on a web page. A menu pops up that shows "Copy" and possibly other options.
How can I show my app in that menu?
(The purpose would be to send that text to my app in a custom url scheme.)
Edit:
I thought I saw this behavior in safari, but I was mistaken. It was in an app called Equipd.
Here is an example:
![enter image description here][2]
Is this due to a collaboration between Equipd and Pleco? Or can Equipd just do this because it knows about Pleco's custom url scheme? Or is something else going on here?
It's not possible to edit this kind of menu without using jailbreak-methods. But Apple won't allow these kind of methods in their App Store apps.
But you can use the new App Extensions which Apple introduced with iOS 8. You should check the App Extension Programming Guide Apple provides.
There are different extension-types. What you will need is the Share Extension.

Does Apple reject apps that use images used in Apple's apps?

I'm making an audio player app.
In apple's Music app, if music album or podcast doesn't have artwork, musical note image or podcast icon image are shown instead of artwork.
I want to do same thing.
Can I use images in apple's Music app for my app?
Will apple reject my app?
Do I have to create images of musical note and podcast icon by my self?
Or is it recommended to use apple's images for my app for user experience?
I also want to use history icon, podcast icon, and audiobook icon which are used for tab bar icon in apple's apps.
Reusing toolbar / button icons is fine and Apple probably appreciates UI consistency. Many many apps make use of the Apple icons not included in the core set which are in the app store. Using 'larger' art will be frowned upon though, like splash arts / stock images.
I did used an image from Apple, and I might say it's rather bizzarre:
1) I uploaded an application for a client that used the "Photos" application icon, and everything went ok, the application was approved.
2) In the next month, I uploaded a new application, for a different client, but with the same logic (only the design was different) and used again the "Photos" application icon. This time the application was reject, stating that I couldn't use Apple icons. After that, I changed the icon and it was approved.
Next time, I won't be using images from Apple. In my case, I didn't had tight deadlines, but if I had, I would be screwed.
It depends on the reviewer. Some will let it go and others won't. As far as I am concerned, it isn't worth the risk. Just find/create another graphic to use.
Note, that you don't have legal rights to use Apple's images. They are copyrighted.
Even if the application is not rejected (approver doesn't have to notice the use of copyrighted image), you can have problems later.
Yes apple will reject the application if we use Apple's owned graphics/ property. you can check the guidelines if you need

Resources