I have a login screen which has a background image. Initially when i run the application the image does not show up fully and it leaves blank space at the top. When the application is moved to background, and reopened again, the image is shown correctly covering the entire screen. Why this has strange behaviour? I have tried adding uiimageview and settingimge and also setting view's background color with [UIColor colorWithPatternImage: ]. Both does not work fine.. Any solution for this?
Related
What could possibly be causing this white area to show on my iPad simulator?
this is just a snippet of the table view and ONLY shows like this on the iPad. I've seen this before on my actual iPad app but only when the user selects the row it would highlight that weird white rectangle.
I'm about ready to submit a new build but afraid this will show like this on an actual iPad.. Anyone else seen this before?
Here's how my storyboard is set up:
And my folder/view hierarchy:
I realize I have a lot of views within views but I've never had this behavior before and the weird thing is i don't have any views that have the same dimensions as the mysterious white area..
Fixed it by making the tableView background color and the cell background color clear.
I've run into an interesting situation with a UIWebView. In Interface Builder, I set all four constraints to equal the margins and filled the webview with content. It works exactly as you'd expect.
An issue occurs when I rotate the webview. The webview rotates but in doing so, it reveals an grey background color. This isn't a color that I've set. In fact, I set the parent's view to have a black background color to match the webview content.
Here are my constraints for reference:
I'd appreciate any guidance on how to make my webview will the entire border or at least, manually change the grey color. Much thanks!
Note: This only occurs in the simulator. I haven't tried this on a device yet.
Ack ... it was the background view that was the culprit. The simulator didn't pick up my color changes. I never did a clean on them. I tested today and was able to change the grey color to the one of my choosing.
In cocos2d there is always a splash screen by default. How to replace it (or just to delete that one and make other way) with something animated , for example? Is it good idea at all? How it affects the moderation?
This is how we've handled this in our game in cocos2d-x:
Set a blank Orange LaunchImage in Xcode.
In the AppController as soon as the EAGLView is setup we change it's backgroundColor to the same Orange as our LaunchImage because it was showing a black screen for a split second before showing our animated splash scene/layer.
__glView.backgroundColor = [UIColor colorWithRed:GC_BG_COLOR_RED green:GC_BG_COLOR_GREEN blue:GC_BG_COLOR_BLUE alpha:1];
Created a scene/layer before the menu that is shown for 3-4 seconds, on which we show our brand's logo animation.
On completion of the animation we reset the backgroundColor back to the default black.
your splash screen image replace the "Default.png" in project resource.
I have a hybrid iOS app that is essentially a uiwebview that loads HTML from our server. There's a fixed position top bar, a fixed position bottom tab bar, and a scrollable/draggable middle content section with content loaded via AJAX. However, sometimes a one-pixel, gray (#838383) line appears at the bottom of the middle content section when you scroll past the bounds of the content, ie, elastic scrolling. However, it's not consistent. In some tabs of the app, it doesn't show up at all, and I can't figure out what's causing it to appear or in some cases not appear. I've searched all the server-side CSS and HTML for "838383" but nothing turned up.
Normal state:
normal state http://msr-cf.matt.re/lio-app-line3.jpg
Elastic scrolling shows gray line:
scrolling with gray line http://msr-cf.matt.re/lio-app-line.jpg
Elastic scrolling on different page does not have gray line:
scrolling on a different tab does not have gray line http://msr-cf.matt.re/lio-app-line2.jpg
Has anyone experienced this before, know why it's happening, or have a solution?
This may slow down rendering a bit, but try the following:
webviewView.opaque = NO
You have to adjust UIWebView: set opaque NO and clear background color simultaneously:
Setting a custom background image (for iOS < 5) in the style of a tinted rounded rect text field works fine,
yet I can't change it back to normal or not even to another background image, once it's set.
I'm calling setBackground:nil and setBorderStyle:UITextBorderStyleRoundedRect on the view in order to reset it.
There is some effect: The edge of the border gets slightly lighter, as if the desired view is drawn behind it, but it's not set back to the normal appearance. Calling setNeedsDisplay doesn't help either.
Am I missing another property?