Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem initializing app #5

Open
bsgbryan opened this issue Nov 20, 2013 · 0 comments
Open

Problem initializing app #5

bsgbryan opened this issue Nov 20, 2013 · 0 comments

Comments

@bsgbryan
Copy link

I just followed the install instructions and get the following error when I run rake

2013-11-19 21:58:16.838 AiO[8495:80b] Pixate Framework v2.0 (API 2) - Build 2013/11/06
<PXUILabel_UILabel 0x9296250> method `styleId' created by attr_reader/writer or define_method cannot be called from Objective-C. Please manually define the method instead (using the `def' keyword).

I installed version 0.0.6 and have that version specified in my Gemfile. I'm also running Pixate 2.0 and RubyMotion 2.14.

The code for my app_delegate is:

class AppDelegate
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    @window.rootViewController = ReaderController.new
    @window.rootViewController.wantsFullScreenLayout = true
    @window.makeKeyAndVisible
    true
  end
end

The code for my ReaderController is:

class ReaderController < UIViewController
  pixate_layout '#my-view.fancy' do
    UILabel '#title-label.small.green', text: 'My Title'
    UIButton '#ok-button.call-to-action'
    UIView '#parent' do
      UILabel '#child'
    end
  end
end

Am I doing anything wrong? I'm running OSX Mavericks and iOS 7 SDK. Is there any other info that would be helpful? I'm new to RubyMotion, but would love to help in any way I can :-)

Thanks - I'm excited to start using this, it looks really cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant