0

作業中のプロジェクトをレーキしようとすると、次のエラーが発生します。理由がわかりません。メッセージは、送信した変数に関係なく発生します。

Objective-C stub for message `setTranslucent:' type `v@:c' not precompiled. Make sure you properly link with the framework or library that defines this message

これが私の app_delegate ファイルです。

class AppDelegate

def application(application, didFinishLaunchingWithOptions:launchOptions)
     navigation_appearance
     @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
     tableView = StopsController.alloc.init 
     @window.rootViewController = UINavigationController.alloc.initWithRootViewController(tableView)
     @window.makeKeyAndVisible
     true
end


def navigation_appearance
    UINavigationBar.appearance.setBackgroundImage UIImage.imageNamed('navbar_bg.png'),
    forBarMetrics: UIBarMetricsDefault
    UINavigationBar.appearance.setTranslucent(true)
    UINavigationBar.appearance.setShadowImage UIImage.imageNamed('navbar_shadow.png')   
end

end
4

1 に答える 1