質問するログイン新規登録

回答編集履歴

2

AppDelegate -> AppController

2015/11/06 15:50

投稿

fuzzball
fuzzball

スコア16733

answer CHANGED
@@ -1,7 +1,7 @@
1
1
  動作確認していませんが、これでどうでしょうか?
2
2
  ```swift
3
3
  // 投稿ダイアログの表示
4
- let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
4
+ let appDelegate = UIApplication.sharedApplication().delegate as! AppController
5
5
  appDelegate.window!.rootViewController!.presentViewController(twitterPostView, animated: true, completion: nil)
6
6
  ```
7
7
 

1

Bridging-Header\.hについて追記

2015/11/06 15:50

投稿

fuzzball
fuzzball

スコア16733

answer CHANGED
@@ -3,4 +3,11 @@
3
3
  // 投稿ダイアログの表示
4
4
  let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
5
5
  appDelegate.window!.rootViewController!.presentViewController(twitterPostView, animated: true, completion: nil)
6
- ```
6
+ ```
7
+
8
+ 【追記】
9
+ もし`プロジェクト名-Bridging-Header.h`というファイルがあるなら、その中に、
10
+ ```
11
+ #import "AppDelegate.h"
12
+ ```
13
+ を追加してみて下さい。