How to properly show a popover? - ios

So I've linked one button (the one which represent a trash, in blue) with a second scene on my project as shown in the following link: https://gyazo.com/52f140f12cd5d80dd7e4ea191e8daa5f
My problem:
I don't know why, but my popover does not fully appear, see this picture:
My question:
Knowing that i'm actually working with the interface builder, how can i manage this popover so it will be fully displayed (it actual size are normally set as 500*500)?
Or do I have to do it programmatically? If yes, can someone give me a hint?
Thanks in advance!

Related

Navigation Bar Item Image is not visible

I trying to implement a hamburger menu using a scroll view, two container views and two embedded views with Swift 2 and Xcode 7. Everything works but for some reason, I can't see the picture of the Navigation Item I set. However if I click on the area where the Item is supposed to be it responds as I expect. But I can't figure out why I can see the Nav bar item image?
Any idea what I am doing wrong?
Thanks
Be sure that the image that you're trying to set is added to your project. Not the project folder but the actual Xcode project and used in the target that you're currently using.
My guess is that you're setting the image with
UIImage(named:"YourImageName")
Also, another hint is that you can make your button visible.
Hope this helps.
I figured out my bug. I had copy a piece of code to create the menu image and paste it in a class with the same name. So the image was never created. But Xcode didn't complained that I have a nested class of the same name as the main class, that would have helped so much :-/

Storyboard connected properties not work

Im really confused because my problem may sound silly, i try to explain it clear - when i add anything on storyboard view controller it has no effect. And obvious, my viewController set properly to a controller, that manage storyboard scene. I adding anything - buttons, imageViews, it doesn't appear on a screen at all.
Also i want to add, i never seen such problem before recent Xcode update, when storyboard scene's become "large" and there is single scene for any device (600x600).
That issue literally drive me crazy, i can manage interface objects programmatically but i don't want to, because i use to work with Storyboard. Could you please write some advice or solution?
Thanks!
You need to add positioning constraints. By default, it will leave elements where they are, so they might be cut off. Also make sure what should be in the background is Sent to Back.
You can check if the auto layout this interfirindo or even if you this in the right view.

Creating book type flip side animation using uipageviewcontroller Xcode

I want to create an interface like the image above . When you turn the page this is the kind of behavior happening.
So what is different here is that the cover (the black part) is still visible once you turn the page (the cover is flippable as well, not just a static asset). In a UIViewController when I flip the page it unloads the previous view. So how do I go about implementing this ?Any help or nudge in the right direction will be much appreciated.Thanks in advance.
Have a look at this turorial. It helped me a lot!
http://www.appcoda.com/uipageviewcontroller-storyboard-tutorial/
For the page turn effect you need to go in Interface Builder and select page curl for your UIPageViewController.

UIView/ViewController name [picture]

What is the name of the UIView/UIViewController in the left upper corner of the attached picture?
And more general question: where could an iOS developer find full and illustrated list of all available UIViews and ViewControllers?
Sorry, don't have enough reputation to attach the picture, please follow the link: image with iphone interface mockup.
That isn't a controller, it's a UIActionSheet. Also, the XCode documentation is pretty useful for browsing through iOS classes. To get to it, press the button in the top right-hand corner of XCode, labeled "Organizer".
More on UIActionSheet, you declare one by calling:
initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:
Make sure to set your controller as the delegate and to implement:
actionSheet:clickedButtonAtIndex:
to specify what should happen when a button is clicked.
To show the Action Sheet initially, it has a bunch of showFrom... methods to specify where it will appear on the screen (for iPad, at least).

Trying to mimic the Apple iPad popover style

My sincere apologies if this question has been asked, but I really couldn't find it.
Essentially, I am trying to mimic the look of the popovers used by the built-in Apple applications. In particular, not the popovers that use a tableview list, but rather those popovers that only have buttons inside.
For example, in the Mail app, clicking the left-facing arrow on the top right of the screen, a popover is shown with four buttons: Reply, Reply All, Forward, Print.
How is this particular popup created to give that look?
I have tried making my own UIViewController with a black background and Round Rect Buttons, but it doesn't look the same. Any help would be much appreciated!
Thank you.
It's a UIActionSheet. On iPad, it gets a "popover" appearance if it's not presented from within another popover.

Resources