Latest 1.0.0
Homepage https://github.com/sanekgusev/SGVAttributedNavigationBarTitle
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

[![CI Status](http://img.shields.io/travis/Alexander Gusev/SGVAttributedNavigationBarTitle.svg?style=flat)](https://travis-ci.org/Alexander Gusev/SGVAttributedNavigationBarTitle)

Enables attributed strings as navigation item titles. Should be enabled separately for each UINavigationBar instance by setting UINavigationBar.sgv_attributedTitleEnabled to YES. After that, all navigation items that have UINavigationItem.sgv_attributedTitle set to an NSAttributedString will display their corresponding attributed strings when pushed onto the navigationBar.

Some runtime magic is involved.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.
You should also be able to see this in action by

pod try SGVAttributedNavigationBarTitle

Requirements

iOS7+. A pinch of bravery.

Installation

SGVAttributedNavigationBarTitle is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SGVAttributedNavigationBarTitle"

Author

Alexander Gusev, [email protected]

License

SGVAttributedNavigationBarTitle is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SGVAttributedNavigationBarTitle",
    "version": "1.0.0",
    "summary": "Attributed strings in navigation bars.",
    "description": "                       Enables use of attributed strings as navigation item titles by [ab]using the power of Objective-C runtime.n",
    "homepage": "https://github.com/sanekgusev/SGVAttributedNavigationBarTitle",
    "screenshots": "https://raw.githubusercontent.com/sanekgusev/SGVAttributedNavigationBarTitle/master/screenshot.png",
    "license": "MIT",
    "authors": {
        "Alexander Gusev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sanekgusev/SGVAttributedNavigationBarTitle.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/sanekgusev",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "public_header_files": [
        "Pod/Classes/UINavigationBar+SGVAttributedNavigationBarTitle.h",
        "Pod/Classes/UINavigationItem+SGVAttributedNavigationBarTitle.h"
    ],
    "frameworks": "UIKit",
    "xcconfig": {
        "ENABLE_STRICT_OBJC_MSGSEND": "YES",
        "GCC_TREAT_WARNINGS_AS_ERRORS": "YES",
        "CLANG_WARN_DOCUMENTATION_COMMENTS": "YES",
        "GCC_WARN_FOUR_CHARACTER_CONSTANTS": "YES",
        "GCC_WARN_SHADOW": "YES",
        "GCC_WARN_64_TO_32_BIT_CONVERSION": "YES",
        "CLANG_WARN_IMPLICIT_SIGN_CONVERSION": "YES",
        "GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED": "YES",
        "GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS": "YES",
        "GCC_WARN_ABOUT_MISSING_PROTOTYPES": "YES",
        "GCC_WARN_ABOUT_MISSING_NEWLINE": "YES",
        "CLANG_WARN_ASSIGN_ENUM": "YES",
        "GCC_WARN_SIGN_COMPARE": "YES",
        "CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION": "YES",
        "GCC_WARN_UNKNOWN_PRAGMAS": "YES",
        "CLANG_WARN_UNREACHABLE_CODE": "YES",
        "GCC_WARN_UNUSED_LABEL": "YES",
        "CLANG_WARN__DUPLICATE_METHOD_MATCH": "YES",
        "CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES": "YES",
        "GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR": "YES",
        "CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS": "YES",
        "GCC_WARN_STRICT_SELECTOR_MATCH": "YES",
        "CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF": "YES",
        "CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK": "YES"
    }
}

Pin It on Pinterest

Share This