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 marcw7174 » Wed Jun 01, 2011 2:45 pm

Hi HalfMoon,

I was wondering if you had or knew or any code to change the tint colour of the tabbar?

I have looked through the Blueprint and have found really useful, big thanks! Have used the tabbar code and changed the background, but wondered if there is anyway I can change the blueish tint that the tabbar gives the icons? I have tried but have failed miserably.

Would really appreciate if you can help, if not thanks for the BluePrint hope it develops more.

Thanks
marcw7174
 
Posts: 74
Joined: Thu Jul 01, 2010 10:38 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby petter89 » Wed Jun 01, 2011 2:50 pm

marcw7174 wrote:Hi HalfMoon,

I was wondering if you had or knew or any code to change the tint colour of the tabbar?

I have looked through the Blueprint and have found really useful, big thanks! Have used the tabbar code and changed the background, but wondered if there is anyway I can change the blueish tint that the tabbar gives the icons? I have tried but have failed miserably.

Would really appreciate if you can help, if not thanks for the BluePrint hope it develops more.

Thanks

+1 on this.
I was looking all over the web last night to try to find a way to disable the grey and blue gradient the icons gets with tabbar, but no success of implementing it into NK.

It would be sweet if we could do custom tabbar and hover icons!
Apps in progress...
User avatar
petter89
 
Posts: 58
Joined: Fri Nov 19, 2010 4:59 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby mayakovski » Thu Jun 02, 2011 6:41 pm

No love on Xcode 4.0, code loads into editor fine, but when simulator is launched it goes to the splash screen and just stays there, does not hang the simulator as I can go to the home screen and run the built in apps, but if I go back to the NKBluePrint Obj-C / JS Mix it just goes to the splash screen and stays there.

This is what the Xcode console shows.

Code: Select all
dyld: Symbol not found: _OBJC_CLASS_$_AVCaptureDevice
  Referenced from: /Users/Shawn/Library/Application Support/iPhone Simulator/4.0.2/Applications/CA3E98B2-EFFB-4B46-AD58-F8AC1149CF88/ObjC-Mix.app/ObjC-Mix
  Expected in: /Users/Shawn/Xcode/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/AVFoundation.framework/AVFoundation
in /Users/Shawn/Library/Application Support/iPhone Simulator/4.0.2/Applications/CA3E98B2-EFFB-4B46-AD58-F8AC1149CF88/ObjC-Mix.app/ObjC-Mix
No matter where you go,
there you are. B.Banzai
User avatar
mayakovski
 
Posts: 158
Joined: Mon Jan 17, 2011 7:37 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Thu Jun 02, 2011 7:46 pm

mayakovski wrote:No love on Xcode 4.0, code loads into editor fine, but when simulator is launched it goes to the splash screen and just stays there


Just had a look - seems the issue is to do with this line...
Code: Select all
dyld: Symbol not found: _OBJC_CLASS_$_AVCaptureDevice

... which is connected with the flashlight code. Seems to be an issues with the AVFoundation library not loading or not being found.

I'll see if I can fix it to work with earlier versions in my next commit - but for now you either run on the iPhone 4.3 simulator or delete flashlight.h & flashlight.m and it should work back to 4.0.

Regarding the NavBar icon colour & custom icons, short answer is.... I don't know how! :lol: it's something that I want to be able to use in an app as well. It's definitely possible as I've seen other apps doing this but the problem I have at the moment is not being able to access the way native controls are created in NimbleKit. Sunny said he is adding a method to do this in NK 2.0 so hopefully that will make things easier - but I'll keep trying and if I figure it out before then, I'll add it for sure.
:)
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 mayakovski » Thu Jun 02, 2011 8:03 pm

Right, looks good, running on Xcode 4.0, with the 4.3 simulator works, though if I choose Flashlight on, it borks the app, and it will not run again until the simulator is relaunched.
No matter where you go,
there you are. B.Banzai
User avatar
mayakovski
 
Posts: 158
Joined: Mon Jan 17, 2011 7:37 pm

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Thu Jun 02, 2011 8:09 pm

mayakovski wrote:if I choose Flashlight on, it borks the app, and it will not run again until the simulator is relaunched.


Yeah, that only runs on device. It's noted in the source code but I'll add a "check if device or simulator" type thing in there.
: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 » Tue Jun 07, 2011 4:14 pm

payges wrote:Thanks for that..I obviosuly don't understand it at all...may wait until I learn a bit more...but would it just be a question of adding the relevant code into those two files?


Halfmoon: Thanks for sharing this really helpful project!

I do have a bit of trouble with the zoom/fade action. I've pasted all the code commented as "fancy fade/zoom" into my appDelegate.m + .h but nothing seems to happend... What's the magic trick?
npalmqvist
 
Posts: 106
Joined: Thu Feb 17, 2011 10:07 pm
Location: Stockholm, SWEDEN

Re: NKBlueprint Obj-C / JS Mix Edition

Postby HalfMoon » Wed Jun 15, 2011 8:27 pm

Thanks to Sunny, the left button can now call a javascript function and can be removed
8-)

npalmqvist wrote:Halfmoon: Thanks for sharing this really helpful project!

I do have a bit of trouble with the zoom/fade action. I've pasted all the code commented as "fancy fade/zoom" into my appDelegate.m + .h but nothing seems to happend... What's the magic trick?


Glad it's useful :)
Maybe double check that it's all been copy & pasted without anything missing? If it's still not working, post up a sample project and I'll have a look for you.
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 HalfMoon » Thu Jul 14, 2011 2:36 pm

Added methods to obtain free space on device & list files in documents folder.
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 cactuscraig » Thu Jul 14, 2011 4:31 pm

I had it working (fade and scroll) in Xcode 3. It took a bit to get going in Xcode 4, since I do not understand it so well.
When creating new project in Xcode 4, your M file has this:

Add an underscore to window in these 3 lines in your M file:
Code: Select all
    [window addSubview:splashView];
    [window bringSubviewToFront:splashView];
    [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];


to

Code: Select all
    [_window addSubview:splashView];
    [_window bringSubviewToFront:splashView];
    [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:_window cache:YES];


This is because of the way Xcode 4 "declares" this view.
Code: Select all
@synthesize window=_window;
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

PreviousNext

Return to Sample Code

Who is online

Users browsing this forum: No registered users and 0 guests