iOS 7 & 8 custom activityImage differences - ios

Since iOS 7 we've included custom activityImages for sharing purposes through the UIActivity component. According to this official Apple documentation it states that every non-transparant pixel will be overlayed by a grey gradient. The images we used where mainly transparant (transparant pixels became white) except for the part that was useful (became grey).
If I run the same application in the newest XCode on iOS 8.4 it seems that this is different. Apple restricted the use of colours in iOS 7 with their grey overlay but apparently not in iOS 8. This results in 2 different images based on the iOS version running on the device. I can't seem to find any documentation about this change. The official documentation has not been adapted as well. So I am not sure if this is an Apple related bug or a feature.
Will I really have to support 2 different kinds of images (one for iOS 7 and one for iOS 8) when I want to use custom activityImages?
If someone can refer to some more information on this, please do so.

The documentation still hasn't been updated, but you are correct, this is a change in iOS 8. That means your app should provide a different icon based on the iOS version.
See this other answer to a related question for more details.

Related

System Image for UIButton appears in iOS14, but not in iOS13

I set system images for UIButtons and also in the tab bar. This works for iOS 14, but on iOS 13 the images are missing.
What could be the reason, for the system images to be missing on iOS 13?
Details:
I have a button with the image property set to "square.and.arrow.up" in the storyboard. (See screenshot below)
The image appears on iOS 14, but not on iOS 13 (see screenshot below. Simulators overlapping)
Similar behaviour occurs for the tab bar items. (see other screenshot below)
Xcode is 12.5, MacOS 11.2.3, iOS Simulators 13.6 and 14.5.
This happens on the devices too, not only in simulators.
The SF Symbols App claims that the icon is available since iOS 13+.
Any help is appreciated :-)
It seems like a bug 🐞.
✅ Use this bug as a feature!
Although it is a bug, it's a very good practice to always have a fallback for these kinds of ongoing stuff.
So try to export the symbol (File -> Export..) and import it as an asset to the assets catalog.
Note that although Xcode supports imported symbols, you may consider using a separated icon file (like a PDF) for older iOS devices.
Besides it is more reliable, it will bring some other benefits to your project:
1. Backward compatibility
Since it uses the embedded assets in the bundle, they can be used even in iOS 12 and below.
2. Forward compatibility!
All versions of SF Symbols.app have come out as a beta app and Apple is constantly changing the conventions and rules and other aspects of creating and using these symbols.
For example, take a look at this naming convention:
As you can see, The name of this symbol is changed from iOS 15, and old codes will not show this in the future!
3. Wider support
You can use these exported symbols where there is no direct support for using symbols (like UIApplicationShortcutItem when it wasn't supported in the early versions and here is the full example)
Wrap it up:
So it is a good choice to always have backups of symbols and fall back to them if something went wrong...

generate ios 10 universal app splash screen sizes and filenames, iPhone SE

I am making an iOS 10 ONLY Universal App. Being a developer with poor image-handling skills, it has become too troublesome to generate the splash screen images for me. I guess that's some work for the "designers".
Nevertheless, i have to do it and I need help because what i have made doesn't work fine with the iPhone SE.
I don't care about older devices and operating system versions, but i want to cover every device that can run iOS 10. so forget iOS 6,7,8,9.
Btw, i am using Xcode 8, so forget all about Xcode 5,6,7.
There's too much of confusing content for new developers often wasting their time while they read about older versions and which might not be quite applicable anymore.
I have read the following posts/guides already.
What are the sizes used for the iOS application splash screen?
Image resolution for new iPhone 6 and 6+, #3x support added?
Image sizes required to support all iPhone devices
How to handle image scale on all the available iPhone resolutions?
Use vector artwork for iOS launch image in asset catalog?
The first SO post is so outdated, people are talking about iOS 6 & 7,
and iPhones 6, 6+, 5S, 5, 5C, 4S, 4 and the various iPads.
But no one mentioned/talks about iPhone SE.
The second SO post is also quite outdated, people are talking about iOS 7 & 8, and iPhone 6 and 6+ are mentioned.
Even though i figure out the size, there is a filenaming/convention issue.
I am looking for a table that clearly states the filename, image size(resolution) and the devices it will be applied to.
As usual, Apple's documentation provides good detail about image resolution but nothing about filename.
link -> https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/
I wonder if the filenames matter? I can easily modify the Contents.json file i think.
Is there some tool where i can provide my logo in vector (SVG) format
and it gives me all the splash screens with my logo in the center (with the correct filenames!)
I believe the iPhone 5/5C/6/6S/6+/7/7+ are the only 7 iPhones that support iOS 10. (i checked Wikipedia) Did i miss something?
In a universal app, is making images for iPads mandatory?
Why doesn't everyone use and everyone allow using vector images directly? I hope i can use SVG, and it is easy enough, it looks like currently that is infeasible. correct if i am wrong.

iphone 6 and 6 plus size scaling

I am surprised how I was unable to find anything on this matter clearly addressing the How-To's rather than what to expect from Apple in the new iOS.
I am developing an application from scratch now and whenever I use the simulator of iphone 6 and iphone 6 plus in the xcode IDE, i get things misplaced in the screen such as shown in attached screenshots.
How can I build an app that would work on all iPhones the same way (autoscale or auto-resize)? If this has been answered before, please lead me to that topic/thread since I wasn't able to find anything decent and clear explaining this.
It's all about autolayouts.
Here is good article for You: http://mobileoop.com/how-to-use-auto-layout-in-xcode-6-for-ios-7-and-8-development
Or the official Apple: Auto Layout Guide

How to upgrade your project for ios 3.0 to ios 6.0 onwords

Right now I am working on non-arc project for ios3.0. They haven't designed anything by interface builder. Everything coded is both for landscape view and portrait view separately. My Problem is when I try to add the same image for background of another screen, it appears to be cropped. also enabling the auto resize subviews gives me error. When I try to set views for portrait and landscape view, it doesn't work.
one more thing, that project is only developed for iPad. if they want it to be done for iPhones, should i have to start from scratch separately for iPhone because of above mentioned problems ?
please suggest me if the upgraded app will support for 64 bit ipad retina.
Thanx in advance
Make your project universal by changing the setting shown in the image below. Also it is better to drop support for iOS 3 as nobody uses it anymore and support iOS 6 and above. It will give much more options and flexibility regarding frameworks and layouts.
To support 64-bit devices you have to build with iOS 5 or higher as minimum supported iOS version. Best practice is to support the two latest releases (iOS 6 and 7 at this moment) as most iOS users update their devices fast after each os release.

Multi image's resolution development with iOS

I am a beginner in iOS development, and I want to develop a universal iOS app (IPhone3 & 4 & 5, iPade 1 & 2 & 3 & 4, iPad Mini).
After several researches on Internet, I found the following results:
My questions are:
1- Are my results true?
2- Do I need the three image's resolution(because we have 3 aspect ratio) to developp one app for the different iOS devices?
Thanks
1
Yes, Its true. You can find more details from Icon and Image Sizes porvided by Apple.
2
Yes, Mainly we required these three type of Images also depends on your iOS project.
Icon and Image Sizes,
App Icon and
Launch Images.
And also please review this iOS Resolution Quick Reference.
And as per you comment you can find the Icon resolution information for android from Android Developer portal. And for window you can find from Window Developer portal (Differ for window phone 7 and window phone 8). or for you more information when we create a project for Window Phone this will give you sample images you can replace according to there and you requirements.

Resources