How to make one more rotation of a tab bar in landscape?

I have a subclass of UITabBarController with an associated scene in storyboard. I'm customizing the appearance of its tab bar in this subclass, and I'd like to show it vertically at the left side of the screen when orientation of the device changes to landscape, instead of the default horizontal and bottom of the screen position.

In my subclass of UITabBarController, in the viewWillTransitionToSize:withTransitionCoordinator: method, I try to perform a 90 degrees rotation of the tab bar:

self.tabBar.transform = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI/2);

which in fact rotates the tab bar, but it keeps in the bottom center of the screen, it does not take the full height of the screen, and its tab bar items are rotated but they all overlap.

How could I solve this?

Thanks in advance

Category:ios Time:2019-01-12 Views:0

Related post

  • How to make one digit after decimal point? 2012-01-30

    Searching how to make two digit after decimal point as below $ = (double) (((int)($ * 100)) / 100.0); Anyone can help to how to make "one digit" after decimal point ? thanks a lot --------------Solutions------------- What about this: $ = (double) (((

  • i want to make one more window 7 bootable dvd with the help of the files already in dvd 2014-01-01

    i have a win 7 bootable dvd which i purchased,but i want to make one more window 7 bootable dvd with the help of the files already in dvd,plzz help me u can send me answer to my *removed private information* . plzz help me original title: making boot

  • In Windows Live Movie Maker, how to make ONE subtitle with inner different font sizes? 2014-08-24

    How to make ONE subtitle with different font sizes, like in the older Windows Movie Maker? I want to produce a videoclip effect, like MTV clips that fade in and out during the video (not before nor after the video). This is approximately what I want

  • how to make the a chart in excel to become a landscape portait in word(explain) 2013-03-18

    how to make the a chart in excel to become a landscape portait in word(explain) If an equation is added to the heading in excel it is not recognized and the column heading 'column1' appears. --------------Solutions------------- Are you trying to copy

  • How do I upload custom images to my tab bar in the iPhone SDK? 2009-05-09

    How do I upload custom images to my tab bar in the iPhone SDK? I uploaded an image, added it to resources, and tried to make it the image for a tabbar item. This is what happened: http://www.mediafire.com/download.php?tmn1xtnmjhz Thanks -------------

  • MYSQL - 'SELECT' and 'AS can make only one column.. how to make them more? 2012-02-10

    I have such a query: SELECT ( SELECT name FROM text WHERE id = 100 ) as name, x, y, w, h FROM pictures WHERE id_obj = 'example' AND picture_type = 20 ORDER BY id DESC LIMIT 1 It works fine as long as there is any row from pictures table that matches

  • How to make team more cross-functional? 2009-04-05

    The problem we have now in your development process, is that there are a few people, who don't make team more cross-functional. So, sometimes this people can become a bottleneck for some parts of the project. They don't like using Wiki for the shared

  • How to make rand() more likely to select certain numbers? 2010-08-28

    Is it possible to use rand() or any other pseudo-random generator to pick out random numbers, but have it be more likely that it will pick certain numbers that the user feeds it? In other words, is there a way, with rand() or something else, to pick

  • How to make a sprite rotate to a touch Cocos2d 2011-06-13

    I have an arrow sprite, and it is for aiming purposes in my Cocos2d game. Therefore, I want it to point to where the user touches the screen. How do I program the rotation of the sprite so it will rotate to the user's touch location? Thanks! --------

  • How to make callCC more dynamic? 2011-08-24

    I thought the right type for ContT should be newtype ContT m a = ContT {runContT :: forall r. (a-> m r) -> m r} and other control operators shift :: Monad m => (forall r . (a-> ContT m r) -> ContT m r) -> ContT m a reset :: Monad m

  • Cocos2d how to make one sprite following another sprite? 2011-11-22

    I have a maze game that using cocos2d I have one main sprite that can save "friend" sprite Once "friend" sprite collide with main sprite, the "friend" sprite will follow main sprite everywhere. Now I dont know how to make "friend" sprite follow main

  • how to make code more readable with compiler optimizations in place? 2012-03-22

    Code is read more often then updated. Writing more readable code is better than writing powerful and geeky code when compilers can optimize for best execution. For example see below code - this code can be compressed by combining the nested if statem

  • How to add one more column? 2009-09-13

    Using VB6 code Dim fso As FileSystemObject Dim TS As TextStream Dim TempS As String Dim Final As String Set fso = New FileSystemObject Set TS = fso.OpenTextFile(1.txt, ForReading) Final = TS.ReadAll Do Until TS.AtEndOfStream TempS = TS.ReadLine Final

  • How to Make Eclipse More Like Emacs 2010-01-19

    I am very familiar with emacs--and I realize that there is nothing that it cannot do--but there are some things that it does not do well or efficiently. So, being between projects I am open to the idea of switching to a full-featured IDE such as Ecli

  • How to make your more experienced and authoritative teammates not to create 'fast temporary solutions'? 2010-03-27

    I'm currently working on a small short-lived project. But despite the size it's complicated enough with very unclear logic. That's why it was started by more experienced developers. They work on it from time to time because it's not their main projec

  • django: How to make one form from multiple models containing foreignkeys 2010-06-17

    I am trying to make a form on one page that uses multiple models. The models reference each other. I am having trouble getting the form to validate because I cant figure out how to get the id of two of the models used in the form into the form to val

  • How to make website more SEO friendly when the content is coming from the database? 2010-06-22

    How can i make my database content search-able on SE, so basically how to make a website more SEO friendly where the data is not static, it will come from the database. --------------Solutions------------- It doesn't matter whether its content is loa

  • How to implement one-finger rotate gesture recognizer? 2010-08-27

    I'm aware that there's the UIRotateGestureRecognizer already part of the iOS. But this gesture required two fingers. How I can implement a similar gesture recognizer requiring only one finger? There's a game in the AppStore - Gyrotate with a pretty g

  • How to make it more Pythonic? 2011-03-13

    I'm learning Python. I found this problem from Google Code Jam. And solved it by writing this code. It works correctly But What are the other possibilities to make this code more Pythonic, Increase Speed or in anyway better. Thanks. import sys def sp

  • Pagination - how to make it more dynamic 2011-07-08

    I'm trying to create dynamic page links, I currently have it like this... <c:forEach var="page" begin="1" end="10"> <a href="/servletmapping/${page}">${page} </a> </c:forEach> On each page there are 10 rows, thus using the abo

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 3.245 (s). 13 q(s)