Issue with navigation bar landscape image - uinavigationcontroller

I am in a hurry to provide iOS 8 support to my app. I have got a navigation controller based app and i have given back ground image to my navigation bar. One wired issue I found on testing my app using iOS 8 SDK (X-Code Beta-6) and iOS 8 beta version(8.0(12A4345d)) is that navigation bar landscape image is not working properly. I went on researching and found that images set to UIBarMetrics UIBarMetricsLandscapePhone is not working. On further research to found why it is so, I found that on setting 'View controller-based status bar appearance' to NO on plist, landscape image is not working. On removing it from plist or setting YES resolved the problem. Till now am not sure what is the reason behind this. Am I missing any thing ?

In some cases that too didn't fixed the problem. What I did is on orientation change I have reset 'UIBarMetricsDefault' image with landscape image
if (potrait) {
[navController.navigationBar setBackgroundImage:
[UIImage imageNamed:#"potraitImage"] forBarMetrics:UIBarMetricsDefault];
} else if (landScape) {
[navController.navigationBar setBackgroundImage:
[UIImage imageNamed:#"landScapeImage"] forBarMetrics:UIBarMetricsDefault];
}

Related

Post-Based Slider Revolution: Post feature image is not showing full width in mobile and tablet devices

The post feature image is using as background of the slider, It is dynamic which come form "Image from Stream if exist". IN desktop device it is fine but it is not showing correctly in tablet and mobile devices. I wan to to show the feature image 100% full width in tablet and mobile devices. I have tried a few way to fix it but still there is problem. Can anyone tell me how to fix that?
As the normal method is not work to fix this problem
Then I took a text layer and set custom meta filed for the post feature Image but I think I didn't implement it well. I want to know the way so that I make my post feature image 100% full width in mobile devixes. Thanks

Why is my cursor not showing in Mobile VR? (1.0.4)

I noticed the 360 Image Gallery example on the Aframe.io website is broken so I have been trying to fix it.
I've got it to work on Desktop and 2D mobile browser, but when I switch to VR mode in my mobile (iPhone) browser, there is no cursor and I can't change scenes anymore.
What am I missing?
https://glitch.com/edit/#!/bubble-glitter-specialist
Thank you!
Something change in Safari iOS 13.4.1 that broke VR mode. More info at https://github.com/aframevr/aframe/issues/4554

Fullscreen and volume buttons are hidden behind top bar, in youtubehelper in Swift

While using youtube 'YouTubePlayer' cocoapod for for iOS application.
After youtube updated their policy we have to show the title, avatar and share buttons in the top portion of YouTube view. because of this fullscreen and volume button hide behind these item.
this screen from the iPhone6
How to show the fullscreen button like this below screen
because this is from the iPhone5 screen
I had the same issue in another library. In my case, I removed the "showinfo" parameter in the settings, because it is deprecated.
I have used this another library
which similar to the youtube official iOS library
The only difference between these both is:
youtube official library using WebView
which is causing the crashing issue in iOS 12.0.
where as YoutubePlayer-in-WKWebView this library using the WebKit this is working fine for me.
Fullscreen button is hide behind the title view, for this set the playsinline parameter to 0 then which enable the video can play in full screen mode.

Can't set IOS 7 simulator home background image

I am using IOS7 simulator. I have an image in "Photos". I set it as background image (from "Photos") but home screen background remains black. Can you give me some advice? Thanks in advance. Is anyone alive? :)
Drag an image from your Mac to the simulator.
Mobile Safari opens. Click and hold the image.
Choose Save Image.
Go to Photos.app, and into the photo album.
Choose your image, and set it as the home screen background like you do on a device.
This works.. Tried it on the 3.5inch iPhone retina simulator. Downloaded the stock wallpapers for iOS 7 and applied with the above steps..
Turns out it is quite easy:
Drag an image from your Mac to the simulator.
Mobile Safari opens. Click and hold the image.
Choose Save Image.
Go to Photos.app, and into the photo album.
Choose your image, and set it as the home screen background like you do on a device.
Source: Setting Background image in simulator home-screen
In another plan.
Set wallpaper in iOS 6 environment to make LockBackground.cpbitmap
Place the file into following folder. (in case of 7.0.3)
~/Library/Application\ Support/iPhone\ Simulator/7.0.3/Library/SpringBoard/LockBackground.cpbitmap
Restart simulator.
I hope you will get it.

In-call status bar not working with landscape views

My application runs exclusively in landscape interface orientation. Testing on the iPhone Simulator, showed that the in-call status bar isn't working properly; only the top half of the status bar appears and clicking it does nothing. When I changed the application to run in portrait mode, the in-call status bar started working as expected.
I also tested this using the "HelloWorld" iPhone sample app. When run in portrait mode (i.e. sample unaltered), in-call status works fine. When I change the sample to run in landscape mode (i.e. implement shouldAutorotateToInterfaceOrientation to "return UIInterfaceOrientationIsLandscape(interfaceOrientation)"), it exhibits the same broken behavior seen in the landscape version of my application.
Has anyone else seen this behavior before?
Unfortunately I don't have a real iPhone to test this on. Can anyone verify that this bug only exist in the simulator, or does it also manifest on an actual iPhone?
Thanks lots.
A far as I know this is the correct behaviour. As the height of the screen in landscape is very small as it is it would make no sense to increase the status bar's height.

Resources