NimbleKit - fast iOS app development

NKBlueprint Obj-C / JS Mix Edition

Forum for posting sample code and examples, new posts creation is not allowed, but everybody can comment

Re: NKBlueprint Obj-C / JS Mix Edition

Postby francisco » Mon Jan 09, 2012 12:11 am

HalfMoon, thanks you so much for updated.

Francisco.
User avatar
francisco
NimbleKit Guru
 
Posts: 163
Joined: Thu Dec 01, 2011 12:45 pm
Location: Barcelona, Spain

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Sun Jan 15, 2012 6:45 pm

Basic UIScrollView method added
:D
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: NKBlueprint Obj-C / JS Mix Edition

Postby npalmqvist » Mon Jan 16, 2012 8:51 am

HalfMoon wrote:Basic UIScrollView method added
:D


That's a nice one Halfmoon. Been waiting for this one a long time.
Maybe add som kind of visible pagination instead of the horizontal scrollbar? That would be nice!
npalmqvist
 
Posts: 106
Joined: Thu Feb 17, 2011 10:07 pm
Location: Stockholm, SWEDEN

Re: NKBlueprint Obj-C / JS Mix Edition

Postby jazzbass » Mon Jan 16, 2012 1:28 pm

That's fantastic one. For hiding, it seems, not possible as it is. it must be declared in a class (like the compass example) then initiate and called by in another .m, then removeFromSuperview. I tried it for hours but could not succeed yet.
User avatar
jazzbass
 
Posts: 139
Joined: Sun Jun 27, 2010 9:01 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Mon Jan 16, 2012 2:29 pm

npalmqvist wrote: Maybe add som kind of visible pagination instead of the horizontal scrollbar? That would be nice!


A UIPageControl would be good - I'll see if I can get one added:
Image

jazzbass wrote:For hiding, it seems, not possible as it is. it must be declared in a class (like the compass example) then initiate and called by in another .m, then removeFromSuperview. I tried it for hours but could not succeed yet.


Yeah - getting something added to the _webView is relatively easy, but getting rid of it is proving to be a sticking point with me! :twisted: Eg. Here in the "PickerView with Labels project" in the hideMyPicker function I had to do a hacky loop to remove the labels.

I seem to have a habit of removing the entire webView as well... :lol:
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: NKBlueprint Obj-C / JS Mix Edition

Postby thaberkern » Tue Jan 17, 2012 4:08 pm

I would love support for UIPageControl. That woul dbe really, really great :)
thaberkern
 
Posts: 1
Joined: Tue Jan 17, 2012 4:05 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby jazzbass » Sun Jan 22, 2012 1:54 pm

Battery Level seems not working on all kind of devices from 4.2 to 5. :shock:
User avatar
jazzbass
 
Posts: 139
Joined: Sun Jun 27, 2010 9:01 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Sun Jan 22, 2012 1:58 pm

Hmm, I'll look into it
:)
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: NKBlueprint Obj-C / JS Mix Edition

Postby jazzbass » Sun Jan 22, 2012 2:35 pm

ok, I found it :D . JS Slice part causes the error.
User avatar
jazzbass
 
Posts: 139
Joined: Sun Jun 27, 2010 9:01 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby ihmunro » Sun Feb 12, 2012 4:14 am

Hi There

I have my Obj C Mix working great, but now would like to add it as part of a menu.

I originally had the code tied to a Tab Bar, but now would like it tied to a TableView so that I can have a choice of 4 or 5 things that would call my calculator that I have pre-fixed for different sizes for my application.

If I use the same code, the Tableview Appears then goes straight to the original file again - it like it is firing because I guess the code is there.

Any help to get it to only run when selected would be appreciated, here is my code:

This is my original code tied to a Tab:

tabController.setTabBarForPage("CalculatorMenu.html", "Calculator","calculator.png");

This is the Tableview

image.loadFromBundle("canada.jpg");
tableView.insertRecord("2.0000", "", image, "0", "", "navController.gotoPage('calculator.html')");


NKRegisterClass("Calculator");
CallNKitAction("show?className=Calculator");

Iain
ihmunro
 
Posts: 371
Joined: Sat Oct 02, 2010 9:31 pm

PreviousNext

Return to Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest