124th Day As An iOS Developer - Category For UINavigationController

March 4, 2016 - 124th Day As An iOS Developer

FRIDAY - Ok, I will post this post as fast as I can, because I got many things to do. I'm typing this today, March 7 8:30 AM - Monday. My shift doesn't start yet but I'm so ready to to programming. I gotta share something to this post real quick : A category for UINavigationController. Basically, this category, what this does is it lets your Navigation Controller call a method to either hide or present your Navigation Bar and make it transparent.

So here's the code, by the way, I got this from SO. But I just made it a category - wait, I'm not sure if the one who made this code shared it as a category, but anyway, here it is:

UINavigationController+TransparentNavigationController.h

#import <UIKit/UIKit.h> 
@interface UINavigationController (TransparentNavigationController)
- (void)presentTransparentNavigationBar;
- (void)hideTransparentNavigationBar;
@end


UINavigationController+TransparentNavigationController.m

#import "UINavigationController+TransparentNavigationController.h"

@implementation UINavigationController (TransparentNavigationController)

- (void)presentTransparentNavigationBar
{
    [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setTranslucent:YES];
    [self.navigationBar setShadowImage:[UIImage new]];
    [self setNavigationBarHidden:NO animated:YES];
}

- (void)hideTransparentNavigationBar
{
    [self setNavigationBarHidden:YES animated:NO];
    [self.navigationBar setBackgroundImage:[[UINavigationBar appearance] backgroundImageForBarMetrics:UIBarMetricsDefault] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setTranslucent:[[UINavigationBar appearance] isTranslucent]];
    [self.navigationBar setShadowImage:[[UINavigationBar appearance] shadowImage]];
}

@end

So there you go folks, oh, by the way, I tried working last Sunday - yesterday, I mean, I learned masking images, I just finished setting up my Map Screen for the App.

FIN.

91st Day As An iOS Developer With No Experience

January 19, 2015 - 91st Day As An iOS Developer With No Experience.

TUESDAY - It's another complain day! 100th day is quite near from today, I'm so excited to learn more new things. The last time I watched a tutorial was yesterday I think, I watched one tutorial for CATEGORIES. But I wasn't able to finish it. I really need to study more seriously because I feel like the Lord is putting me to a better company. Don't get me wrong, I really love working here, but there is no more new project here, and not to mention I have no senior/mentor. I've been longing for a mentor, Lord. Please give me one :)

So wanna read/hear another complain today? Well my tasks for today was to fix (yes, it is not yet done as of today) the UI of a certain project for iPhone 6/6+, I was able to fix the main screen User Interface, but I forgot to fix the position of the pop ups of the app, and the fact that that app has 3 versions, I really need another day to finish them all. BUT AT THE SAME TIME, the manager told me that there will be a deadline tomorrow for the other project that I handle. What the heck, right? I'm the only iOS developer here and it seems that he thinks that I am a robot. Dude, come on! Give me a break!

Anyway, starting tomorrow, I'll be serious in work. More way serious to tutorials as well. So help me, Lord.