How to truncate the content of back button in UINavigationController?

I need to truncate the string content of back button of navigation controller. Let me explain clearly. I have large title in First view controller, same name is appearing in the next view controller while navigating in a back button. So much space is occupied by back button, I could not able to set the title clearly in next view controller.

How can I truncate the content of Back Button. Please help me out of this.

Thanks, Madan Mohan

--------------Solutions-------------

You could try setting a custom back button for the first view controller, with the truncated title.

[self.navigationItem setTitle:@"A really long title"];

UIBarButtonItem * newBackButton = [[UIBarButtonItem alloc] initWithTitle:@"A really.." style:UIBarButtonItemStyleBordered target:nil action:nil];
[self.navigationItem setBackBarButtonItem:newBackButton];
[newBackButton release];

Category:objective c Time:2010-05-26 Views:1

Related post

  • unix command to truncate file contents 2010-03-04

    can someone help me with unix command to truncate the contents of the files in the directory. I am using Cygwin in windows. --------------Solutions------------- for file in * do >$file done Just redirect from nowhere: > somefile.txt If you want

  • Change the content of a button at runtime in wpf 2010-06-10

    I have a button in a wpf (silverlight actually) application. I want to change the content of this button at runtime in order to add an image to it (for example, if content was "button one", i want the content to become: stackpanel containing image1 +

  • Internet explorer 7 and 8 truncating website content 2010-07-11

    I've spent a few days with this problem and I can't seem to find a solution anywhere and it's driving me nuts. I created a web page that loads all of it's content dynamically and for some reason the content gets truncated in IE 7 and 8. It works fine

  • implement content edge insets button android 2011-07-08

    This is rather tough for me. I am trying to implement the content edge insets feature found in the ios for android button. I believe this enables positioning of the content inside the button based on top, bottom, left and right values. Does anyone ha

  • How to make jQuery Mobile to display two-lines label (or, in general, to preserve HTML content of a button's label) in a Button component 2011-11-28

    It seems that by default jQuery Mobile strips the HTML content of a <button> tag. So for instance placing a <br/> tag does not work. --------------Solutions------------- Right, then don't use one ;-) So instead of : <button>testing

  • Change the content of a button using an event handler 2012-04-03

    The code contains buttons in datagrid. Each of this contain text "Send". <DataGrid.Columns> <DataGridTextColumn Width="*" Header="Uid" Binding="{Binding Uid}"/> <DataGridTextColumn Width="*" Header="Type" Binding="{Binding Type}"/>

  • Randomly assign the contents of a Button 2012-04-12

    I'm creating a quiz for kids in WPF. All the questions are coming from a database. The interface has a textblock for the question and four buttons for the multiple choice answers. How do I randomly assign the Content of the buttons so that the correc

  • Can you set the content of a button in wpf with a style? 2009-10-01

    When I try this, all the buttons turn blue, but the content isn't set. <Window.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="Background" Value="Blue"/> <Setter Property="Content" Value="Edit"/> </Style

  • Update panel's content with a button click 2009-11-25

    I am pretty new to WPF and I cannot figure out how to update a specific part of my page with a single button click. In my application design I have a menu with buttons to the left and to the right I have a series of panels. One is status bar (bottom)

  • printing parent page and iframe contents from print button withing iframe 2010-04-29

    I am using an iframe (I hate them by the way!) to call in a 3rd party checkout page into my parent page. The check out page doesn't allow me to pass any variables into it other than $total_amount. So, if an individual purchases 2 or more items they h

  • How do I use content size in Button Template Triggers? 2010-07-06

    I'm creating a ControlTemplate for a Button. I want to animate the size so it grows to fit the content when the mouse hovers over it. However, I'm not sure how to get the content size in the triggers section. Here is what I have. <ControlTemplate

  • Display image in content presenter in button 2010-08-17

    I have a button with a style that displays an image inside it. I would like to be able to specify the image it uses using the Content property on the button (or some other means). How can accomplish this without actually nesting an image directly in

  • Resize UITableViewCell content when delete button shows up 2010-12-08

    Is there any way to use autoresizing masks to move my content so that the delete button doesn't cover it up? Googling has told me that I need to set an autoresizing mask of UIViewAutoresizingFlexibleRightMargin on my subview. It seems to me like UIVi

  • WPF c# Retrieving a listbox row's contents from a button in the same datatemplate 2011-03-18

    I've been researching this for a while and to no avail (I've tried to get command working but there is somethign I'm seriously missing I think. Very new to WPF's way of doing things which isn't helping (but really liking what I find with WPF) I'm hav

  • How can I underline a single character in the Content of a Button in WPF? 2011-05-20

    I have a number of buttons in my WPF window and I would like to have certain characters in the button contents underlined. I have tried using the "_" like "My_Content" to underline the C, however this does not appear until the user hits the Alt key,

  • Evenly-sized buttons according to content of largest button 2011-06-06

    Imagine I have two WPF buttons on a window, with content as follows: <Button>OK</Button> <Button>Cancel</Button> I want these buttons to be the same width, however in a scenario where the Content is bound to a localised value

  • How to get Facebook message content from Send button? 2011-07-19

    We have a Facebook send button that we'd like to capture the actual message that is sent. We are using the FB API to capture the message.send callback event, but it doesn't seem to have the actual message content in it. Anyone know how to get this me

  • Validating contents on Next button click in jWizard Framework 2011-08-16

    Here is my problem. I wanted to implement an "installation wizard" in Swing. I stumbled upon jWizard framework and I liked the look-and-feel of the wizard. Unfortunately, I have not been able to come up with a solution for validating the contents of

  • How to wrap contents like image, button inside Android layouts? 2011-10-12

    I want to place list of buttons in a layout and I want them to flow to automatically. Take a look at this picture, This is how WrapPanel wraps its content in WPF. Is there a way I can do this in Android? --------------Solutions------------- You use a

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

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