I am trying an iPad application using Xcode. I am just a beginner so there are things I don't know how to do. In my app, I have some images showing one by one by scrollview. Now, I want them to zoom in when double tap and zoom out when double tap again. Can anyone tell me how to zoom in and out using the same scrollview which is used to display all the images?
Thanks. :)
Please Refer the Apple Documents... Scroll View Programming Guide for iOS
Related
I am working on tvOS app and the requirement is to display tab bar controls on left side like in Disney+ tvos app. So can display tabbar controls on the left side or do I have to create a custom view to achieve this?
Attached is the Disney+ tvos tabbar images
As far as I know, there is no way to rotate a UITabBarController on its side. However, you could take a UITabView (https://developer.apple.com/documentation/uikit/uitabbar) and rotate it on its side using Core Animation. To add functionality, set something as the UITabBar's delegate to learn about changes.
As far as an actual code snippet, I typically write in Swift, but I found another Stack Overflow answer with what you're looking for.
How to programmatically rotate image by 90 Degrees in iPhone?
Hope that helps, have a nice day!
I have a page view controller embedded inside a container view in order to swipe between images. But now I am trying to add a touch that will make the image go full screen "lightbox" with zoom available and also swipe through the images while in full screen mode.
I can get it to work, and messing around with auto layout seems to be much work consider I have a lot of other stuff in that VC.
So does anyone know a good image slider from github written in swift? - without the need of cocopods.
thanks!
It's easy enough to write one yourself. In full-screen mode, use another UIPageViewController, because it already has the swipe left & right support built in.
I have a problem. I am working on app and I am using Storyboard(AutoLayout off). For iPhone 5 and later it is good. But for iPhone 4S I have to change position programatically. But after change I cant click on UIButton, it doesnt change touch area. Where can be the problem? Or how you solve problems with screen size?
Thank you
In Xcode my UIButton is centered and locked in the right place using the grids but when I run the app I'm building from a tutorial I'm following the button is slightly to the right.
Is there a quick fix for this other than shifting the button to the left in Xcode until it's centered in simulator which is pointless because the guides in Xcode are there to help so I'd like to take advantage of them and not need to do this.
Make sure you have unchecked the use Autolayout option for your Xib.
if is horizontal centered image, try like this:
ps: make sure that the parent view of the UIButton is also centered in the screen
After updating XCode I realised the issue was that XCode was launching ios simulator for 3.5inch iphone. I changed the device to iphone 4inch retina and this fixed the issue.
I am learning Xcode and am playing around with the SquareCam sample code app that Apple provides.
What I want to do is to be able to zoom in and out of the image with a slider object rather than the gesture.
How can I do this? Thank you!