<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>bencoffman.com/blog - Mobile</title>
    <link>http://bencoffman.com/blog/</link>
    <description>News about Tech and a few other things.</description>
    <language>en-us</language>
    <copyright>Ben Coffman</copyright>
    <lastBuildDate>Thu, 23 Feb 2012 13:29:19 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>coffmanben@gmail.com</managingEditor>
    <webMaster>coffmanben@gmail.com</webMaster>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=e704b297-f883-4a7d-bfc3-71a59742afc4</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,e704b297-f883-4a7d-bfc3-71a59742afc4.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,e704b297-f883-4a7d-bfc3-71a59742afc4.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e704b297-f883-4a7d-bfc3-71a59742afc4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202009-09-17%20at%208.55.44%20PM.png" />
        <br />
        <br />
Turns out this isn't too hard, just a few simple things to understand.<br />
1. If you are creating a TabBar Controller, the TabBar Controller will always have
to be the root view. 
<br />
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<br /><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"><br />
-</span> (<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">void</span>)
viewDidAppear:(BOOL)animated { }</span><br /><br />
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:<br /><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><br />
PersonalInfoVC *personalInfoVC <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> [[PersonalInfoVC
alloc] initWithNibName:<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">@"PersonalInfoVC"</span> bundle:nil];
UINavigationController *navController <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> [[UINavigationController
alloc] initWithRootViewController:personalInfoVC]; [self.tabBarController presentModalViewController:navController
animated:YES];</span><br /><br />
Next in each subsequent view in the navigation controller you can call the view after
it like so<br /><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><br />
DepositDetailsVC *depositDetailsVC <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> [[DepositDetailsVC
alloc] initWithNibName:<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">@"DepositDetailsVC"</span> bundle:nil];
[self.navigationController pushViewController:depositDetailsVC animated:YES];</span><br /><br />
Finally when you are done with the flow of the injected navigation controller run
this code to go back to your original TabBar controller<br /><br /><pre><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px">[self.navigationController
dismissModalViewControllerAnimated:YES];</span></pre><br />
Easy enough. :)<br /></pre><br /><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=e704b297-f883-4a7d-bfc3-71a59742afc4" /></body>
      <title>UINavigation Controller before Tab Bar Controller</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,e704b297-f883-4a7d-bfc3-71a59742afc4.aspx</guid>
      <link>http://bencoffman.com/blog/2012/02/23/UINavigationControllerBeforeTabBarController.aspx</link>
      <pubDate>Thu, 23 Feb 2012 13:29:19 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202009-09-17%20at%208.55.44%20PM.png"&gt;
&lt;br&gt;
&lt;br&gt;
Turns out this isn't too hard, just a few simple things to understand.&lt;br&gt;
1. If you are creating a TabBar Controller, the TabBar Controller will always have
to be the root view. 
&lt;br&gt;
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&lt;br&gt;
&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;
&lt;br&gt;
-&lt;/span&gt; (&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;void&lt;/span&gt;)
viewDidAppear:(BOOL)animated { }&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;
&lt;br&gt;
PersonalInfoVC *personalInfoVC &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; [[PersonalInfoVC
alloc] initWithNibName:&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;@"PersonalInfoVC"&lt;/span&gt; bundle:nil];
UINavigationController *navController &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; [[UINavigationController
alloc] initWithRootViewController:personalInfoVC]; [self.tabBarController presentModalViewController:navController
animated:YES];&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
Next in each subsequent view in the navigation controller you can call the view after
it like so&lt;br&gt;
&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;
&lt;br&gt;
DepositDetailsVC *depositDetailsVC &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; [[DepositDetailsVC
alloc] initWithNibName:&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;@"DepositDetailsVC"&lt;/span&gt; bundle:nil];
[self.navigationController pushViewController:depositDetailsVC animated:YES];&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
Finally when you are done with the flow of the injected navigation controller run
this code to go back to your original TabBar controller&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;[self.navigationController
dismissModalViewControllerAnimated:YES];&lt;/span&gt;&lt;/pre&gt;
&lt;br&gt;
Easy enough. :)&lt;br&gt;
&lt;/pre&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=e704b297-f883-4a7d-bfc3-71a59742afc4" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,e704b297-f883-4a7d-bfc3-71a59742afc4.aspx</comments>
      <category>iphone</category>
      <category>iPhone</category>
      <category>Mobile</category>
      <category>Objective C</category>
    </item>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=e884bf10-f888-41b3-a05f-a13370ca3bfd</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,e884bf10-f888-41b3-a05f-a13370ca3bfd.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,e884bf10-f888-41b3-a05f-a13370ca3bfd.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e884bf10-f888-41b3-a05f-a13370ca3bfd</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/Capture1.PNG" border="0" />
        <b>
          <br />
          <br />
          <br />
          <br />
Problem:</b>
        <br />
Internet won't work with Blackberry simulator.<br /><br /><b>Solution:</b><br />
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.<br /><br /><ol><li>
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.<br /></li></ol><ul><li>
JDK</li><li>
BlackBerry_Email_MDS</li><li>
Blackberry Simulator (which ever simulator you want to simulate)<br /></li></ul><li>
Install all of these in the order listed above</li><li>
Now you need to add and Environment variable</li><blockquote><ul><li>
Click start button</li><li>
Right click "computer"</li><li>
Click "properties"</li><li>
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"</li><li>
In "System variables" Click "New" and in "Variable Name" put "JAVA_HOME" and for "Variable
value" put the path to your java folder<br />
It should be something like this "C:\Program Files\Java\jdk1.6.0_24"</li></ul></blockquote><br />
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.<br /><br />
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.<br /><br /><br /><p></p><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=e884bf10-f888-41b3-a05f-a13370ca3bfd" /></body>
      <title>blackberry simulator no internet, blackberry simulator internet</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,e884bf10-f888-41b3-a05f-a13370ca3bfd.aspx</guid>
      <link>http://bencoffman.com/blog/2011/02/22/blackberrySimulatorNoInternetBlackberrySimulatorInternet.aspx</link>
      <pubDate>Tue, 22 Feb 2011 19:57:10 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/Capture1.PNG" border="0"&gt; &lt;b&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Problem:&lt;/b&gt;
&lt;br&gt;
Internet won't work with Blackberry simulator.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Solution:&lt;/b&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
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.&lt;br&gt;
&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
JDK&lt;/li&gt;
&lt;li&gt;
BlackBerry_Email_MDS&lt;/li&gt;
&lt;li&gt;
Blackberry Simulator (which ever simulator you want to simulate)&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;
Install all of these in the order listed above&lt;/li&gt;
&lt;li&gt;
Now you need to add and Environment variable&lt;/li&gt;&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Click start button&lt;/li&gt;
&lt;li&gt;
Right click "computer"&lt;/li&gt;
&lt;li&gt;
Click "properties"&lt;/li&gt;
&lt;li&gt;
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"&lt;/li&gt;
&lt;li&gt;
In "System variables" Click "New" and in "Variable Name" put "JAVA_HOME" and for "Variable
value" put the path to your java folder&lt;br&gt;
It should be something like this "C:\Program Files\Java\jdk1.6.0_24"&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=e884bf10-f888-41b3-a05f-a13370ca3bfd" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,e884bf10-f888-41b3-a05f-a13370ca3bfd.aspx</comments>
      <category>Blackberry</category>
      <category>Mobile</category>
    </item>
  </channel>
</rss>