Xcode 6 storyboard screen size wrong in iPhone5s(iOS 7) but not (iOS 8) - ios7

I created a new project with xcode 6.0.1 using swift and set deployment target to iOS 7.0.
The screen size is wrong for iPhone 5s in iOS7 - it shouldn't have any black spaces.

In new Xcode 6 projects, you don't have these Default-568h#2x.png images.
Do the next steps to fix it:
1) Open your Images.xcassets and look for LaunchImage. It is probably missing.
2) In this case, click on + (located at the bottom) and click on New Launch Image.
3) Select your project target and open Build Settings tab. Look for "Asset Catalog Compiler - Options" section and then "Asset Catalog Launch Image Set Name", if it is empty type LaunchImage.
Voila!

Try using Default-568h#2x.png image as splash.

Project Properties -> General -> App Icons and Launch Images -> Click (Use Asset Catalog)
Pop-up -> Click (Migrate)
Delete (Launch Screen File)
Finish!!!

In Xcode 7, make sure in addition to what's been said about adding a LaunchImage you also add this entry in the plist file:

I imagine this won't help much, but I have exactly the same problem and found this link. Maybe it helps you, I coulnt find the answer:
Xcode 6 Storyboard the wrong size?

put Default-568h#2x to your app bundle with dimension 640x1136. You can assign launch images using xcode catalog assets alternatively.

Under project properties, ensure you are using the "asset catalog" for launch images. I found my project was using a custom location by default. By switching over to "Use Asset Catalog", the top/bottom black margin went away.

I was facing this problem in XCode8. I figured it out that Launch Screen File was not set.
Go to :
project Properties -> General -> App Icons and Launch Images
Click on drop down and select
Main.storyboard.

This issue is solved when you add the Splash screens for Defualt#2x.png and Defualt-568h#2x.png

Related

Change icon of application developed with react native

I want to change my default icon's app to another one and generate my standalone app (with expobuild:android)
But when I add another image(capture) in my assets folder and replace it in app.js,it gives me an error:
{
"expo": {
"icon": "./assets/capture.png",
}}
I tried many time with and without default icon (I have error just with new image) so i'm sure that error came from the change of icons.
Do you have any idea ;
if you are using a CRNA solution, there is an easy way you can do it. Just go into the /assets folder and just paste there your new icon, then rename it to icon.png, just make sure you already removed the default one. It also works with the splash screen.
But if you created your project with create-react-native-app, you need to do it separatly in Android studio for Android and Xcode for iOS. See more with this link wich helped me too.
https://aboutreact.com/react-native-change-app-icon/
Hope it's gonna help ... Regards
I used this this repo and cloned it, then run one line command to resize the png to all the different formats.
bash resize.sh my-cool-new-app-logo.png
Then drag the folder over and merge/replace icons.
quick insight

iOS 7 Newsstand default cover is not set

Since iOS7 the default cover that is set in the info.plist under Icon Files (iOS 5) are not shown after installation the app. Instead the default cover by Apple is shown.
I can see that this property is for iOS 5 but I tried other as well. An example - Icon Files could not be changed from an Array to a Dictionary.
Do you know how to set a default cover for Newsstand app in iOS 7?
Best Regards!
OK i got the solution.Add Icon files (iOS 5) if you didnt add previously in your app-info.plist. Make sure that the long edge on your default cover is at least 512 px. ( Mine is 300 * 528 px)
Please see screenshot:
check the references for the icons you are using in the .plist, make sure they are added as reference to the image and not as references to a folder like the references for the launch images and the icon images
Try to remove "App Icons Source" catalog. In Target=>"General" tab.

Default.png:s in iOS 7

How do we define default pngs in iOS 7? The how-to seems to have changed with Xcode 5.
This time I'll not be supporting anything less than iOS 7 so we can leave older version out of the discussion.
You'll want to learn about Asset Catalogs, which are brand new developer technologies that you'll find in Xcode 5. Under the hood, these will be the new ".xcasset" files & folders managed by Xcode.
And that public link from Apple that I just linked to is all we can talk about publicly outside of Apple's DevForums until the NDA for iOS 7 and Xcode 5 is lifted. I have seen a couple related questions, though.
To solve this issue you have to specifically add background images for iOS 6, Follow following steps to add this using new xCode.
1) Add new image set from asset catalog and name it "Default" image set
2) Right click on that asset catalog image.
3) Choose iPhone, Retina 4 - inch from options like following
4) Add images in sequence with resolutions
320 * 480
640 * 960
640 * 1136
5) Clean your project
6) Run your project
Try this way it will work
Asset Catalog is the best thing for setting application icons... It removes the need to follow naming conventions when you are adding or updating your app icons...
You can use this for setting splash screens & application icons..
In Xcode 5 you can find this options..
1- In the project navigator, select your target.
2- Select the General pane, and scroll to the App Icons section.

NSUserNotification don't show application icon in notification [duplicate]

I'm using OSX's Notification Center APIs for the first time and can't seem to figure out how to make my app's icon to show up in the Notification badge.
The default "your app doesn't have an icon" icon keeps showing up:
Here's what I've done so far
I have created an icns file that includes 512, 256, 128, 32 & 16px versions
dragged the icon into the "App Icon" section of the target's summary
I made to sure to check the box to copy the icon into the project
the plist's "Icon file" section references the correct icon name (minus the .icns) part
Any ideas? The icon doesn't show up when I run the app thru Xcode or when I export an archive either.
I also have extracted the Sparrow.icns file from Sparrow.app and tried using that one instead of the one I made. That didn't work either.
I was able to fix this issue by incrementing the Build number in the General section for the build Target.
You can force the Notification Center to refresh all of the icons by deleting the Notification Center database file (~/Library/Application Support/NotificationCenter/SOME_UUID.db) and then killing the Notification Center process (e.g., from Activity Monitor).
Unfortunately this has the side effect of deleting your notification history, but this wasn't too much of an issue for me.
There's actually an ongoing debate on Apple's developer forums (link, link for people with access) about this. As far as I know, there's currently no real solution, but you can try the following:
Change your app's bundle ID and try it again. If you change it, clean your app, and change back, some people have reported success with seeing their icon show up.
Log in as another user. The caching Notification Center uses may be per-user, so you might be able to get the properly-iconned notifications as a different person.
The folder location has been moved for OSX 10.10+.
Following command takes to you to its new location:
$ cd `getconf DARWIN_USER_DIR`/com.apple.notificationcenter/db
and then
$ open .
Easiest way that I managed to get the icon to show up is change the Bundle Identifier in your project. This works on OSX 10.10.5 and XCode 7.2
(Once notification center picks up the change, you can change it back to your original bundle identifier if you already have a provisioning profile associated with it)
I have solved the issue by archiving my app and adding a copy to my applications folder. When the app is in Application folder, the icon is always visible even you run the app from XCode...
I tried all of the above suggestions but the only thing that worked for me on 10.14 was to delete DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
If anyone still having this issue, and none of the methods above worked, here is how I solved it:
open Notifications from the System Preference (easiest is to open Alfred or spotlight and type Notifications)
find your application and remove it (press backspace/delete button)
NOTE: this may remove all notifications
I am using Xcode 11.5 and I had the same problem. In my case tough, it was sufficient to clean build output, close and reopen the project. Then do a fresh build and let it run again. The icon was there afterwards.
Side note: I've placed the app icon for every size in the assets.xcassets file, except 1024 x 1024 pixels. Don't know if this is relevant or not. Hope that helps.

when start App, than how to remove this Titanium default Page or picture?

I am new Application Developer with the Titanium. i want to develop new Application with Titanium and created a HelloWorld application. Every time my application starts up Than every time Titanium startscreen is show. how I remove this Titanium Startscreen.
I have also 1 question when i run the application in iPhone than show its title bar with windows.
but, in android have not show.
i use build custom with use if else statement i add the title bar. but, any syntax. whose add the tittle bar in android.
I have also occur this type problem than, i sort out this problem with the help of my friend.
I write below step by step.
go to the resource folder where u create ur application.
select the build folder and open iphone and copy the picture whose u want to show on screen.
and rename with default.png
I, think this is useful to you. Let try it.