Changing navigation title programmatically

You change the title by changing the title of the view controller being displayed: viewController.title = “some title” Normally this is done in view did load on the view controller: override func viewDidLoad() { super.viewDidLoad() self.title = “some title” } However, this only works if you have your view controller embedded in a UINavigationController. I … Read more

Hiding Title in a Fullscreen mode?

The way I handle this in my Android games is to call the following line in the onCreate() of my Activity requestWindowFeature(Window.FEATURE_NO_TITLE); I can then turn the full screen capability off and on using the following code in my activity class (usually called from a menu option) (the m_contentView variable is the view from findViewById() … Read more

Fancybox2 – different content for tooltip and image title, both from title attribute?

What I would do is to set the titles to appear in Fancybox in a hidden DIV so my tooltip will show a different content from the title in Fancybox: UPDATE : edited to match your content sample Your HTML: <a class=”fancybox” rel=”works” title=”Sculpture1″ href=”https://stackoverflow.com/questions/8418721/images/Sculpture1_large_res.jpg”><img alt=”Sculpture1 Height:1232mm” src=”images/thumbs/Sculpture1_thumb.jpg” class=”thumb”></a> <a class=”fancybox” rel=”works” title=”Sculpture2″ href=”images/Sculpture2_large_res.jpg”><img alt=”Sculpture2 … Read more

Line break in expression()?

You can easily use line breaks in regular paste, but this is plotmath paste (actually a different function also with no ‘sep’ argument) and the (long) ?plotmath page specifically tells you it cannot be done. So what’s the work-around? Using the plotmath function atop is one simple option: expression(atop(“Histogram of “*hat(mu), Bootstrap~samples*’,’~Allianz)) This will break … Read more

Get chrome browser title using c#

I had to do something like this, but it was amazingly fiddly involving calling Windows API functions. The problem was that Chrome seems to use a single process for multiple windows or some other weirdness that meant the simple approach didn’t work for me. Anyway, try this and see if it works. Basically it uses … Read more

Change PDF title in browser window

Ok, So I found out how to change the meta-data in a .pdf form here: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c63.w.html (dead link; archived version here) Sure enough the Title in the Meta Data within the .pdf was “Coury And…” Once I changed this the Tab and the Title in Firefox web browser changed to have the title that I … Read more

How to align title at center of ActionBar in default theme(Theme.Holo.Light)

You can create a custom layout and apply it to the actionBar. To do so, follow those 2 simple steps: Java Code getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); getSupportActionBar().setCustomView(R.layout.actionbar); Where R.layout.actionbar is the following layout. XML <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”center” android:orientation=”vertical”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:id=”@+id/action_bar_title” android:text=”YOUR ACTIVITY TITLE” android:textColor=”#ffffff” android:textSize=”24sp” /> </LinearLayout> It can be … Read more