Changing UITabBar tint color after splash screen - uitabbar

I tried to read all the topics about uitabbar tint color but I couldn't find one that helped me.
I've no problem to change the tabbar tint color, but after launching the splash screen the tabbar color is for few instants white than it changes to the one I set on my application delegate in applicationDidFinishLaunching.
In the application delegate I first check the iOS version, I set the tabbar tint color, I call the splash screen that after 2.0 seconds dismisses itself presenting the uitabbarviewcontroller: the tint color is initially white then changes to the color I want.
Where is my error?
Thanx in advance

Fixed changing the modalTransitionStyle, it was set UIModalTransitionStyleCrossDissolve that caused the tabbar of the root view controller to be initially white, changed to UIModalPresentationCurrentContext.
Thanx

Related

mxGraph / draw.io : how to change shape default background Color

I'm starting to work on integrating the draw.io editor into my project
https://github.com/jgraph/drawio/tree/dev/src/main/webapp
in the initial state, the shape has a transparent background
I searched almost all files in drawio/src/main/webapp/js
replacing all 'none' or mxConstanet.None related to color with diff. colors to detect the part responsible for the shape background
but without success, please guide me the code that initiates the shape backgroundColor
Thanks you

iOS7 tint color only works after presenting and dismissing another ViewController

I'm having a very odd problem with tint color in iOS7.
When the ViewController that I'm having trouble with first loads, all of the tint is a light gray color, as if everything is inactive or behind a UIAlertView that has dimmed the screen. The buttons are still active and work just fine, but they are all gray. (I have the tint color set to orange, more on that in a bit).
Here's the odd part. If I present, and then immediately dismiss another ViewController, all of the orange tint appears and everything works as expected. That is the only way I have been able to get the tint to appear - nothing else seems to work.
I'm using the same basic code patterns throughout the app, and this problem really only affects one ViewController. This particular ViewController is presented UIModalPresentationFullScreen, and UIModalTransitionStyleCoverVertical, if those matter at all.
Here's how I'm setting tinting:
First, I have set a tint color on each view controller within interface builder, these settings are the same across both working and problematic VCs.
Next, I have set a tint color globally in my App Delegate like this:
[_window setTintColor:[UIColor orangeColor]];
The above two work on most of my ViewControllers, but not on all of them for some reason. For the ones that it was not working on, I've been using a handful of different techniques to get the tint color to work. For example:
self.view.tintColor = [UIColor orangeColor];
or
[_myUIBarButtonItem setTitleTextAttributes:
[NSDictionary dictionaryWithObject:[UIColor orangeColor]
forKey:NSForegroundColorAttributeName]
forState:UIControlStateNormal];
or to force a tintColor update:
[_myButtonOutlet setTitleColor:_cancelButtonOutlet.tintColor
forState:UIControlStateNormal];
Any ideas?
In iOS7, there are different tint behaviors you can choose from depending on what you want.
All you need to do is adjust the window's tintAdjustmentMode property to Normal in didFinishLaunching in app delegate.
self.window.tintAdjustmentMode = UIViewTintAdjustmentModeNormal;

How do I make an object turn black, when a movie clip animation turns black?

I have a light bulb movie clip, where it glows and burns out. I want everything in the scene to turn black when it does burn out. Like objects, movieclips, and arrays. When the light bulb comes back on, I want the objects to turn back to their original color. How do I do this?
Simple way would be to just create a black rectangle and add it to the stage when you want the lights to go out.
When you want the lights back, just remove it from the stage.
You could also adjust the alpha of that black rectangle over time or tween it to have it gradually turn black. When the rectangle has alpha set to 0, everything else's color will be as if the lights are on. Alpha set to 1, would be complete darkness.
Update - now that you have changed the question in the comments of the question by adding details that would have been helpful from the beginning :
You can use ColorTransform to change the color of your fireflies to black. Google that or search that on this site for detail.
Also, you can do this effect in the IDE by setting one frame as normal, and in another frame tint it black using a color effect on the properties panel. (Not sure what version of the IDE you have, it might be labeled differently in earlier versions)

Windows Phone 8 tile doesn't show correct image

Does anyone know why my Win Phone 8 app tile doesn't show the icon I set? This is what I get (and yes, am am sure that's not my app's icon):
This is what I have so far and I ran out of ideas of what can be wrong:
The small icon is a png of 110x110
The medium icon is a png of 202x202
Both images have the build Type = Content
Both images have the copy to output property = Copy if newer
The application icon is the same as the small icon and it shows alright in the program list.
Here is a part of my app's manifest:
<TemplateIconic>
<SmallImageURI IsRelative="true" IsResource="false">Assets\Icons\AppIcon_small.png</SmallImageURI>
<Count>0</Count>
<IconImageURI IsRelative="true" IsResource="false">Assets\Icons\AppIcon_medium.png</IconImageURI>
<Title>
</Title>
<Message>
</Message>
<BackgroundColor>
</BackgroundColor>
<HasLarge>false</HasLarge>
<LargeContent1>
</LargeContent1>
<LargeContent2>
</LargeContent2>
<LargeContent3>
</LargeContent3>
<DeviceLockImageURI IsRelative="true" IsResource="false">
</DeviceLockImageURI>
</TemplateIconic>
If you use TemplateIconic tile the images need to be transparent icons as outlined in Iconic Tile template for Windows Phone 8 because it is just going to end up being a white icon inside a tile. Your image appears as a white square because it does not have any transparency. With the images you have, you would want to use the TemplateFlip tiles and adjust the size of your tiles accordingly.
I had the same problem.
After a lot of brainstorming I tried this and woah it worked!
Check if the image you are setting has a white (or other) background color. If it has, remove the background from the image using Photoshop(Tool: magic eraser) and keep the background transparent.
Replace this transparent background image and it will show up in emulator!
Hope this works at ur end too! :)
Did you look at the manifest file? You can choose the images in that file. I mean using the UI in the studio, open the manifest file and choose the image.
According to Iconic Tile sizing info in Iconic Tile template for Windows Phone 8, both small icon and medium icon must be design with transparent background.
The small icon is a png of 70x110
The medium icon is a png of 130x202
If you need to set the background color, set the BackgroundColor in WMAppManifest.xml as follow.
<BackgroundColor>[hex ARGB format color]</BackgroundColor>
I work with Xamarin.Forms (Shared) for my WP-app and also had problems to implement the Tile in the WP-part of my project.
To set the background to transparent to the tile image have done the job.
But I have used images with 158x158 and 336x336 what also works and allows to use the standard-icon (in a higher resolution) what - I think - most users want to do.
I have created a short description for all visitors, who use XF for WP-development (including app-icon, splash-screen and Tile).
How to add app-icon, splash-screen and Tile in a WP 8.0 XF-project

Metro App StorageFile GetThumbnailAsync Background

In a Metro App, when retrieving the Thumbnail of a StorageFile using the GetThumbnailAsync() method, the Background Color is a Dark Blue/Navy Blue.
Is it possible to override this Color? I would like the Background to be Transparent.
From the documentation,
The thumbnail is an icon on a background of appropriate size. The background color is determined by the app that is associated with the file.
Combined with the following note:
Note If the associated app is a Windows Store app, the app's tile background color is used.
If your app has an association with the file, just make sure your apps Background color is Transparent (not 100% sure you can do that, actually).
The other option is to use something like WriteableBitmapEx to find every pixel of the tile color, then turn those pixels to Transparent. Shouldn't be too absolutely terrible, but will have an overhead (naturally).
Hope this helps and Happy Coding!