Tech and a few other things RSS 2.0
# Thursday, February 23, 2012


Turns out this isn't too hard, just a few simple things to understand.
1. If you are creating a TabBar Controller, the TabBar Controller will always have to be the root view.
2. Once you know the last step the next step is to see what view or xib the TabBar controller calls first. Once you know what xib or view gets called first go to the view or xib's view controller code. In that code create function

-
(void) viewDidAppear:(BOOL)animated { }


Within the above function you can inject the navigation view, but first you must tell the navigation view what the first view you want to be displayed, done like this:

PersonalInfoVC *personalInfoVC = [[PersonalInfoVC alloc] initWithNibName:@"PersonalInfoVC" bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:personalInfoVC]; [self.tabBarController presentModalViewController:navController animated:YES];


Next in each subsequent view in the navigation controller you can call the view after it like so

DepositDetailsVC *depositDetailsVC = [[DepositDetailsVC alloc] initWithNibName:@"DepositDetailsVC" bundle:nil]; [self.navigationController pushViewController:depositDetailsVC animated:YES];


Finally when you are done with the flow of the injected navigation controller run this code to go back to your original TabBar controller

[self.navigationController dismissModalViewControllerAnimated:YES];

Easy enough. :)

Thursday, February 23, 2012 7:29:19 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
iphone | iphone | Mobile | Objective C
# Tuesday, February 22, 2011




Problem:

Internet won't work with Blackberry simulator.

Solution:
This one was a crappy crappy fix. I hated it largely because I hate Blackberry. Maybe this will prevent everyone from having the same issue. I will list the things you need to do in order to get the simulator to work in windows.

  1. All of the install packages I'm about to list can be found with a simple Google search, I recommend always getting the latest versions.
    • JDK
    • BlackBerry_Email_MDS
    • Blackberry Simulator (which ever simulator you want to simulate)
  2. Install all of these in the order listed above
  3. Now you need to add and Environment variable
  • Click start button
  • Right click "computer"
  • Click "properties"
  • If it's windows 7,  Click "Advanced System Settings" then click "envrionment variables", If it's XP click the "Advanced" tab then click "Environment Variables"
  • In "System variables" Click "New" and in "Variable Name" put "JAVA_HOME" and for "Variable value" put the path to your java folder
    It should be something like this "C:\Program Files\Java\jdk1.6.0_24"

Now run the MDS first, then start up your simulator. If the MDS starts and then disappears quickly it is not started. It needs to stay up. If this happens you probably didn't put your environment variable in correctly.

And now after all this BS you can surf the internet on your simulator that will surely be off market and outdated by iOS or Android in about 13 months.


Tuesday, February 22, 2011 1:57:10 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Blackberry | Mobile
Navigation
About the author/Disclaimer
        

My name is Ben Coffman. Currently leading the release of Mobile into Canada for Capital One. I have a strong focus on mobile development, building effective development teams and a drive for rapid prototyping and continuous integration using nearly all SDLCs. When I turn the internet off I focus on my family, random hobbies, and sharing moments in life.

My pseudo provactive thoughts
--> Twitter @coffmanben

Learn About Me
--> Linkedin

Blogs I follow:
  1. Big Nerd Ranch
  2. Jeff Lamarche
  3. Scott Hanselman

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Ben Coffman

Archive
<May 2013>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
All Content © 2013,

Sign In