Dim iPhone screen - iphone

I'm working on an application where it may be used in a dark area and the brightness is required to be lowered. I wanted to put this into the application, and thought that I could add a UIView with a black bg color and change the alpha, but this gets in the way of the user interaction.
Does anyone have an idea on how to do this without blocking human interaction?
Thanks

Set the UIView's userInteractionEnabled property to NO.

Related

Transparent iphone application

I'm trying to build an application that is launched has a transparent background, in practice, showing only the objects in view (buttons, labels etc etc) but not the background so you can see the background the user's home.
In the example file you can see the purple square image at the center of the screen, in theory should be a normal UIView with a picture in the center but does not see the background of UIWindow/UIView.
Is possible to realize such a thing? Can anyone help me?
thanks
No. It's not possible using the official SDK. I'm interested to know why you would want to do this?
It might be possible, try setting the window background color to clear, as well as the view controller's view background color.
I say it might be possible because I've seen my home screen while using some apps, for example, the Facebook app sometimes shows it during a transition (it might be a bug on either Facebook or the OS).
Anyway, I'm pretty sure that kind of app would be rejected from the App Store, so be advised.

iPhone app Launch Image with different backgrounds

This question is similar to this one. My iPhone app allows the user to select the background image to use for the main screen. Therefore, depending on the background image selected by the user, the Launch Image screenshot (of the main screen) will likely display the wrong background image. When the main screen is finally loaded and the Launch Image is removed, it will be quite ugly for the background image to change suddenly to what the user has selected.
Does anyone have any suggestions on how to deal with this? Should I use some kind of splash screen (I thought I read in Apple's HIG that this was not allowed)? Or maybe I should somehow "transition" the user's selected background image into the view after the Launch Image is dismissed and the main screen is visible. Any thoughts?
If you really want to show a 'Splash' Image what you could do is forget about dynamically changing Default.png and use a simulated splash screen effect (simply a UIView or UIImageView covering the entire screen) which disappears after a number of seconds. What you need to ensure is you do the minimal amount of work to show the simulated splash screen and get it on the screen as fast as possible and then do any other computations later on whilst your image is shown.
There is no way you could change the actual Default.png without having the risk of your app being rejected by Apple.
Depending on how long your application takes to launch, you can use a black image as default.png. A "splash screen" isn't recommended but if there is no generic image possible and your app takes a significant amount of time to launch, it would be a better approach for the user's perspective as they would at least know that the application is launching.
Also remember that default.png is only shown when your app first launches, not when it resumes from multitasking (unless it has since been killed off).
See also this question Changing UIView when applicationWillEnterForeground fires which will be the next issue you face if your background image is set in preferences rather than within the app!

iPhone webview - chroma keying possible? (how can I make a color transparent)

I have an iPhone app that has to show web content on top of it.(an webview on top)
Normally I would make the webview transparent and then I simply see what is beneath. That is ok, but not entirely.
I would like to be able to set a Chroma Key = a color that the webview will make transparent so that I see my app beneath.
Is this even possible in iPhone webviews? Thanks,
Neal

custom uiwindow iphone

I want to customize default UIWindow. My aim is that the first window should be of size 320,100 so when user launches the application then he will just see window of size 320width and 100height (0,200,320,100) while remaining screen will be transparent and user will see other applications through transparent screen.
please help me out.
This is just not possible! Read some introduction stuff. Search for sandboxing for the reason why this does not work.

application icon change its background color at iphone device

I have an icon.png which has white background with a blue faced cartoon.
Something like the face of this image.
But, when i see it in simulator/device than its background color change from white to black with blue face at always.
Does iphone change it to provide the aero effect?
Ehm no, it doesn't... Are you sure the icon.png has a white background and is not transparent? And what are you using this for? Is the icon.png being used in your app itself, or is it the icon of your application?
If the icon.png is transparent, it might be caused by the background color of the UIView you are using it in. I suggest changing the icon.png or changing the background color of the view.
Thanks #Anstwan van Houdt. After your reply, i search iphone app icon against transparency and found below this link. It states that if we make a icon transparent that it would give black background color by default.
So, better we give it.