I'll take this StackOverflow answer and adapt it for RubyMotion.
if UIDevice.currentDevice.systemVersion.to_f >= 7.0
view = UIView.alloc.initWithFrame([[0, 0], [320, 20]])
view.backgroundColor = UIColor.colorWithRed(0/255.0, green:0/255.0, blue:0/255.0, alpha:1.0)
self.window.rootViewController.view.addSubview(view)
end