UIWebView orientation change - objective-c

I want to launch a mobile website as an app on iPhone so I've use the UIWebView component.
I want my app to support orientation change,so I've written the following code but I'm not getting expected result.
Please suggest me what changes to be made in order to fix the problem.
Here is my code.

Perfect solution for you question,
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html

which version is your test device?
you should notice that
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation is deprecated in ios6

Related

ReactNative doesn't respond to OrientationChanges

I'm trying to implement a navigation that pushes the user to a different screen when switching to landscape mode. I've tried for several hours now to implement an event listener to respond to an orientation change, which didn't work (I tried different examples from different websites).
Now, I took a full code example from here and here which also didn't work at all. (The first one just changes the text on the screen depending on the orientation, even that didn't work for me -.- )
I also tried to look into ScreenOrientation from Expo-Cli directly (expo-screen-orientation), but don't really get the documentation tbh.
I tried the orientation change on both an android emulator and my android phone (both Android 10).
Is there something I'm terribly missing here? How come that my app not respond to orientation changes?
Have you checked that the Device Orientation is not forced to Portrait in Xcode ? To check this go in Project -> General -> Device Orientation
Had the Device Orientation locked inside the app.json -.-

Block/Blur Screenshot IOS React-Native

Using React-Native I can not block the screenshot. I need to block or blur the screen for IOs. I've tried several things but I could not. Does anyone have a solution?
i think this libary should be helping https://github.com/hawkup/react-native-prevent-screenshot
Currently the best method to do prevention in IOS is using https://screenshieldkit.com/
However, I created a lib to block screenshot (on android) and detect screenshot action on IOS.
https://www.npmjs.com/package/react-native-screenshot-prevention

How to deal with the ios Launch files

It has been a while since I created my last app and I missed the change with the launch file (since titanium 5.2.0).
I want my app to have a custom splashscreen (full screen image). In the past I used the various png files for the splashscreens Default.png, Default#2x.png etc.
I'm testing with the launch file and the custom Storyboard. At the moment it's not clear to me how I can achieve the behavior i want: A full screen image in the splash screen.
What is the best approach?
Thanks for the help.
Go to http://docs.appcelerator.com/platform/latest/#!/guide/Icons_and_Splash_Screens-section-29004897_IconsandSplashScreens-iOSgraphicassetrequirementsandoptions and take a look at the Purpose column. You'll see 9 splash screen sizes. You have to make each of them and put them in app/assets/iphone. Note that you have to name them exactly as told in the table.
This worked for me, Ti-5.4.0 tested on iPhone 7, iPad Air, iPhone 4S and iPhone 6S Plus.
Since version 5.2 storyboards were introduced. You can use them or you can disable it and use the "old" method to implement splashscreens.
To disable it, add this to tiapp: (of course, within the existing ios section in tiapp
<ios>
<enable-launch-screen-storyboard>false</enable-launch-screen-storyboard>
</ios>
To use it, look at the documentation how to implement it correctly.

Wikitude API for iPad 2

with the introduction of iPad 2, I would like to use the Wikitude API in my present app which is available for iPhone, unfortunately I cant figure out how to make that my POIs appear in the whole screen, and not just in a section which is the size of an iPhone screen.
I have tried to modify the xibs, but it doesnt work.
Do you have any idea of how to achieve this?
Thanks in advance.
unfortunately the Wikitude API currently does not support the iPad2 - it is iPhone only at the moment.
Best regards,
Nicolas
The Wikitude SDK does support iPads since 2012 - find the iOS version here:
http://www.wikitude.com/products/wikitude-sdk

Is it possible to disable orientation change for a Symbian Web App?

Just a simple little problem. My app only needs to work in portrait mode and landscape looks funky. Is there a way to disable landscape mode in the app?
Thanks in advance.
There are two ways.
1) In your AppUI's ConstructL(), call:
BaseConstructL(CAknAppUi::EAppOrientationPortrait);
2) At any time, call:
AppUi()->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
See also this Forum Nokia article.