PopUp view in another view - iphone

I've searched on the web with no succsess. I actually just found some popups with html or just text. I would like to make a view that pops up. In the view, should be some content, a button and maybe an imageview. I've found some apps, which are using this popup views so far. The popup displaying is animated. Here I've some pictures:
1.
and then it grown up till it fits:
does anybody know how to do this? It would be awesome if someone has a code snipped for me to present this view in portrait mode.
Thanks.

CocoaControls has some things like this. Take a look at these:
KGModal for iOS
MJPopupViewController for iOS
UAModalPanel for iOS
RNBlurModalView for iOS

You can do this by presenting a modalView with Presentation Style UIModalPresentationFormSheet.
It'll look like:
You need to change the height and width according to your need also you can customize the appearance.
Please refer.
UIModalPresentationStyle
ModalViewControllers
If you need it in iPhone use FPPopover or Modal View in Iphone

Related

Navigation in a UItoolbar in iOS

Take a look at this picture:
I have something like a toolbar includes some buttons. user can move to left and right as you see. I know how to set the button in toolbar, but I don't know how can I fix this kind of navigation on the toolbar. Is it possible in the toolbar?
If yes, how?
if no, do you know any control in iOS that can help me?
It might be worth browsing through Cocoa Controls. They really have a lot of excellent pre-made custom controls for iOS and the Mac.
Personally, I would just create my own custom UIScrollView subclass which contains some UIButtons. Then set the scrollview to scrollView.pagingEnabled = YES after setting a correct content size.
Apple has an excellent guide on using scrollviews with paging here:
http://developer.apple.com/library/ios/#DOCUMENTATION/WindowsViews/Conceptual/UIScrollView_pg/ScrollViewPagingMode/ScrollViewPagingMode.html

Safari Reader font-size control like popover

Safari has a nice popover that is used for controlling the font size. I'm talking about that one:
It's pretty nice, and my question is - how to implement something exactly like this?
Thank you!
There are many projects in github about popoverview, such as this https://github.com/takashisite/TSPopover
One way to implement this is to add a transparent view that takes up the whole screen so that when I touch outside the popover content, it'll dismiss. And the rest you need to do is just add some subviews to your transparent view.
Simple Really, If you want to use a popover then you can see this code PopOver Link
Or you can simply create a UIView containing 2 buttons , let this UIView rollout an animation whenever the UIButton on the bar is clicked and so on and so forth. Let me know for further queries :)

UIView tab bar on top, like HTML on iPhone view

I'm developing a Hotel reservation iPhone application.
I tab view that I mention below image. So I don't know how to search it even. :(
So does any one knows about how to get it to our application I mean Is their any controller to this. Or else how to code this. (Is it html coding??)
Note : I am using Xcode 4.2 and story board. :)
Looks like you want to use UISegmented Controls with custom background, and then create subviews that will switch when you hit the "details" / "Diner Reviews" buttons.
Here's a custom iOS tabbar control similar to what you've drawn
http://cocoacontrols.com/platforms/ios/controls/bhtabbar

How do I show a small option view on clicking bar button item?

I have a requirement to pop up a small option-view on clicking bar button item, similar to this image.
How can I achieve this? Any tutorial or link is highly appreciated.
I'm not sure this is available on iPhone but I know that on iPad UIPopoverController it looks so.
Apple Documentation
You can find source code here to create PopoverController on iPhone !
You need to create an UIView and set for backgound you image. In this new view you can add UIButtons to let the user to select an option.

displaying a smaller UIWebView as a form sheet

I'm trying to pop up a UIWebView on iPad with a web site that is specifically sized for the iPhone (320x480). I want the web view to be centered, and transition in using a zooming animation. Other apps have this functionality, but I can't seem to find out how to do it. I've tried various combinations of presentation & transition style, but no matter what I do, the web view takes up the entire screen and slides vertically to cover the screen. I've made the web view 320x480 in IB, and am using UIModalPresentationStyleFormSheet, which should make it at least slide up into the center of the screen using a small window, but that is not occurring.
anyone know what's wrong?
Are you setting the property of the parent UIViewController or the modal UIViewController? Because you should be setting the properties of the modal UIViewController before presenting the controller instead of the parent.
This might be no help at all because you're doing the right thing, but it was the first error I made when starting to use MVCs.
maybe any of the autosize property is set. just do one thing bind your webview with the code and through code try to set the frame. Hope it will work as it worked many times to me when i faced similar types of problem.
hAPPY cODING...