RubyMotion Error When Using setTranslucent
Posted
by
Sam Morris
on Stack Overflow
See other posts from Stack Overflow
or by Sam Morris
Published on 2013-06-30T21:20:08Z
Indexed on
2013/06/30
22:21 UTC
Read the original article
Hit count: 236
I'm getting the following error when trying rake a project I'm working on, and I can't figure out why. The message happens no matter what variable I sent it.
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
Here's my app_delegate file for reference.
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
© Stack Overflow or respective owner