Swaping views with a custom tab bar - ios

I need to make a custom Tab Bar at the top of my screen using Im using Xcode and Objective-C. I tried using Segmented Control and Tab Bar, however i had no success. Here is a picture of:
how it should look like
I need to make that Tab there, where it shows "Mapas" and "Lista de Lojas" when the user touches the Mapas tab it should show a map with the current location and when the user touches the Lista de Lojas it should show the other view I already have the Lista de Lojas view prepared, if needed i'll post the .m and .h of that view. Can anyone help me? Even if you can't, it would also help if you could hint me on what i should search for. Thanks for the help.

i think that you can simply use two button with round corners at the top of your controller and then use visibility of your map or your listView.
When user tap on 'Mapa' you can start the location, map.hidden=NO, etc....
when user tap on 'Lista de Lojas' you can set map.hidden=YES, yourListView.hidden=NO and yourListView.reloadData().
good luck

Related

Ios menu related issue

Since I'm new to Ios , What i wanted to is given demonstration bellow
That means, on over the image and some text will remain static but , bellow a sliding menu would work like the gif.
if I tap on some menu item it will slide to bring related menu. if I press on the cross it will act back ward.
I don't even know what does it call. I tried with customsegue and transitions. but no luck . also tried with transparent show modally. it works for one view but not for backword (i.e. unwinding) . it get darker.
You can try using UIPageController for pagination effect.

How to make a floating/3D Touch style tableview?

So i'm making an application for tracking livestock. I have made a table view for the animals to go in. I have a navigation controller at the top with a button in side of it.Here is what i have so far.
I would like to have a floating table view come up when the button is pressed similar to the 3D touch menu.
Like these.
My question is how would i go about doing this. Sorry if this is a commonly done thing im pretty new to swift and xcode
If you just wanna to implement,you could search the key words as 'pop over', 'kxmenu' or 'menu' on GitHub/CocoaControls. such like this: https://github.com/zpz1237/NirKxMenu https://github.com/liufengting/FTPopOverMenu
Also, you should make it yourself. When the button is pressed, first you should create a custom window and make it key window. Secondly, add a tableView or a view contains tableView to the custom window. then, use block or delegate to deal with data communication and respond user interaction. After that, design animation you need. At last, remove subviews from custom window and make the original window key window.

Make custom selected tab bar Item in iOS Swift

I am working on an application using Swift which needs to have a TabBarController and when user will select a tab then that particular tab bar item shows a 3d visual effect (Although it will be an static image I guess) which contains shadow and that tab bar item will be bigger in size as well with different tint colour.
Please see the attached image.
I have searched a lot on internet but no luck. Please someone help :(
Use http://cocoapods.org/pods/M13InfiniteTabBar
For as much as I do not like answers in the tone It can't be done, I feel that the specific of your screenshot, namely going outside of the UITabbar background, can't be done with UITabBarController.
You can use -initWithTitle:image:selectedImage:. Documentation found here

How to make the title label to be fit within the back button of UInavigation controller :XCode

I'm using navigation controller in one of my apps, and I am troubling with the title of navigation controller back button. I want
solution 1: to make the title label to be fit within the back button area (something like:adjustsFontSizeToFitWidth=YES)
or
solution2: to make the back button large enough to hold the text.
(solution 1 is more preferable).
For more info, I'm giving an image here...
fig1: Good for short titletext.
fig2: Title get truncated for long text.
fig3: Make the text self adjustable.
fig4: Make the button large enough to hold the text.
Thanks in advance... :)
In IOSX ,till now apple not providing the permissions for customising the back button in navigation controller ,for achieving your requirement you can use your custom button because we are not having permissions for changing the back button frame.
put below code in you .m file
button will auto resize with title
-(void)viewDidAppear:(BOOL)animated
{
self.navigationController.navigationBar.backItem.title = #"Back";//put here your title
}
you will be succeed

How can add a close button in CPTLayerHostingView using Coreplot

How can add a close button in CPTLayerHostingView using Coreplot in an iPad application.
I created a graph in a CPTLayerHostingView using CorePlot. But now I'd like to add a Close or Done button to the CPTLayerHostingView.
Give me a suggestion.
Thanks in advance
CPTLayerHostingView applies a flip transform to its children, so if you add a button or any other view inside it, the subview will appear upside down. Instead, add the hosting view and your button to the same parent view.

Resources