markdown 在应用程序中实现Obj-C代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在应用程序中实现Obj-C代码相关的知识,希望对你有一定的参考价值。

## HUD = Heads Up Display
* head into github for progressHUD

#### MANUAL WAY
* In the github repo, download the package and head inside 
    * ProgressHUD-master/ProgressHUD/ProgressHUD/
* Select all three files: progressHUD.bundle, progressHUD.h and progressHUD.m
* Drag all three into your xcode project /Supporting Files directory
* A popup will show up: make sure Destination Copy items if needed is checked
    * Add to targets: Your project name is also checked, click finish

* Would you like to configure an Objective-C bridging header? -> Create Bridgung Header
* This allows our swift code to accept obj-c written code
* Inside the newly formed document `...-bridging-header.h`, add the following lines: `#import "ProgressHUD.h" `

#### Usage
* In your swift code:

```swift
ProgressHUD.showSuccess("")
//or 
ProgressHUD.showError("")
```

以上是关于markdown 在应用程序中实现Obj-C代码的主要内容,如果未能解决你的问题,请参考以下文章

notepad++中实现markdown语法

Markdown中实现折叠代码块

理解 Obj-C 中的 UITabBarController 子类初始化代码

Notepad++中实现Markdown语法高亮与实时预览

如何在Django 1.6应用程序中实现markdown?

MarkDown中实现目录页面内跳转