Skip to content

Commit

Permalink
Changed RepController
Browse files Browse the repository at this point in the history
  • Loading branch information
zigzag committed Jan 29, 2010
1 parent dd9adcc commit b10061a
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 83 deletions.
5 changes: 2 additions & 3 deletions Classes/RepController.m
Expand Up @@ -25,14 +25,13 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
webView.scalesPageToFit = YES;
webView.autoresizesSubviews = YES;
// webView.scalesPageToFit = YES;
// webView.autoresizesSubviews = YES;
webView.autoresizingMask=(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth);
// //set the web view and acceleration delagates for the web view to be itself
//// [aWebView setDelegate:self];

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];

[self.view addSubview:naviController.view];
}

Expand Down
134 changes: 105 additions & 29 deletions Classes/RepController.xib
Expand Up @@ -8,8 +8,7 @@
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="31"/>
<integer value="6"/>
<integer value="45"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -39,7 +38,7 @@
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<object class="NSColorSpace" key="NSCustomColorSpace" id="713340972">
<int key="NSID">2</int>
</object>
</object>
Expand All @@ -58,19 +57,73 @@
<object class="NSMutableArray" key="IBUIViewControllers">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUIViewController" id="516694443">
<object class="IBUIWebView" key="IBUIView" id="702912638">
<object class="IBUIView" key="IBUIView" id="914674253">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUISegmentedControl" id="304728984">
<reference key="NSNextResponder" ref="914674253"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 20}, {280, 44}}</string>
<reference key="NSSuperview" ref="914674253"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<int key="IBNumberOfSegments">3</int>
<int key="IBSelectedSegmentIndex">0</int>
<object class="NSArray" key="IBSegmentTitles">
<bool key="EncodedWithXMLCoder">YES</bool>
<string type="base64-UTF8">6ZSA5ZSuA</string>
<string type="base64-UTF8">5bqT5a2YA</string>
<string type="base64-UTF8">54mp5rWBA</string>
</object>
<object class="NSMutableArray" key="IBSegmentWidths">
<bool key="EncodedWithXMLCoder">YES</bool>
<real value="0.000000e+00"/>
<real value="0.000000e+00"/>
<real value="0.000000e+00"/>
</object>
<object class="NSMutableArray" key="IBSegmentEnabledStates">
<bool key="EncodedWithXMLCoder">YES</bool>
<boolean value="YES" id="5"/>
<reference ref="5"/>
<reference ref="5"/>
</object>
<object class="NSMutableArray" key="IBSegmentContentOffsets">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>{0, 0}</string>
<string>{0, 0}</string>
<string>{0, 0}</string>
</object>
<object class="NSMutableArray" key="IBSegmentImages">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSNull" id="4"/>
<reference ref="4"/>
<reference ref="4"/>
</object>
</object>
<object class="IBUIWebView" id="996081788">
<reference key="NSNextResponder" ref="914674253"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 71}, {280, 325}}</string>
<reference key="NSSuperview" ref="914674253"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">1</int>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
</object>
</object>
<string key="NSFrameSize">{320, 416}</string>
<reference key="NSSuperview"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
<reference key="NSCustomColorSpace" ref="713340972"/>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<int key="IBUIDataDetectorTypes">1</int>
<bool key="IBUIDetectsPhoneNumbers">YES</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
</object>
<object class="IBUINavigationItem" key="IBUINavigationItem" id="677144830">
<reference key="IBUINavigationBar"/>
Expand All @@ -95,6 +148,7 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 20}, {280, 44}}</string>
<reference key="NSSuperview" ref="595460106"/>
<reference key="NSWindow"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<int key="IBSegmentControlStyle">1</int>
Expand All @@ -114,7 +168,7 @@
</object>
<object class="NSMutableArray" key="IBSegmentEnabledStates">
<bool key="EncodedWithXMLCoder">YES</bool>
<boolean value="YES" id="5"/>
<reference ref="5"/>
<reference ref="5"/>
<reference ref="5"/>
</object>
Expand All @@ -126,7 +180,7 @@
</object>
<object class="NSMutableArray" key="IBSegmentImages">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSNull" id="4"/>
<reference ref="4"/>
<reference ref="4"/>
<reference ref="4"/>
</object>
Expand All @@ -136,6 +190,7 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{0, 82}, {320, 216}}</string>
<reference key="NSSuperview" ref="595460106"/>
<reference key="NSWindow"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
Expand Down Expand Up @@ -177,6 +232,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 317}, {280, 37}}</string>
<reference key="NSSuperview" ref="595460106"/>
<reference key="NSWindow"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<int key="IBUIContentHorizontalAlignment">0</int>
Expand Down Expand Up @@ -204,6 +260,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
</object>
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
Expand Down Expand Up @@ -232,14 +289,6 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
</object>
<int key="connectionID">9</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">webView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="702912638"/>
</object>
<int key="connectionID">11</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">tapSelectDate:</string>
Expand Down Expand Up @@ -273,6 +322,14 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
</object>
<int key="connectionID">44</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">webView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="996081788"/>
</object>
<int key="connectionID">48</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
Expand Down Expand Up @@ -325,7 +382,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="677144830"/>
<reference ref="702912638"/>
<reference ref="914674253"/>
</object>
<reference key="parent" ref="409047790"/>
</object>
Expand All @@ -352,11 +409,6 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
</object>
<reference key="parent" ref="379862982"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="702912638"/>
<reference key="parent" ref="516694443"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">31</int>
<reference key="object" ref="595460106"/>
Expand All @@ -383,6 +435,26 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
<reference key="object" ref="175332223"/>
<reference key="parent" ref="595460106"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">45</int>
<reference key="object" ref="914674253"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="304728984"/>
<reference ref="996081788"/>
</object>
<reference key="parent" ref="516694443"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">46</int>
<reference key="object" ref="304728984"/>
<reference key="parent" ref="914674253"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">47</int>
<reference key="object" ref="996081788"/>
<reference key="parent" ref="914674253"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
Expand All @@ -393,14 +465,16 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
<string>-2.CustomClassName</string>
<string>1.IBEditorWindowLastContentRect</string>
<string>1.IBPluginDependency</string>
<string>10.IBPluginDependency</string>
<string>12.IBPluginDependency</string>
<string>21.IBEditorWindowLastContentRect</string>
<string>21.IBPluginDependency</string>
<string>31.IBPluginDependency</string>
<string>32.IBPluginDependency</string>
<string>33.IBPluginDependency</string>
<string>42.IBPluginDependency</string>
<string>45.IBPluginDependency</string>
<string>46.IBPluginDependency</string>
<string>47.IBPluginDependency</string>
<string>5.IBEditorWindowLastContentRect</string>
<string>5.IBPluginDependency</string>
<string>6.IBPluginDependency</string>
Expand All @@ -414,13 +488,15 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
<string>{{603, 279}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>{{611, 195}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>{{622, 261}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand Down Expand Up @@ -448,7 +524,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">44</int>
<int key="maxID">48</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand Down
2 changes: 2 additions & 0 deletions cnpc.xcodeproj/project.pbxproj
Expand Up @@ -11,6 +11,7 @@
0033E30411097B4100E01B07 /* fuel.png in Resources */ = {isa = PBXBuildFile; fileRef = 0033E30111097B4100E01B07 /* fuel.png */; };
0033E31811097C4E00E01B07 /* star.png in Resources */ = {isa = PBXBuildFile; fileRef = 0033E31711097C4E00E01B07 /* star.png */; };
007D4C5E110995A200DC7299 /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = 007D4C5D110995A200DC7299 /* index.html */; };
00A9CC701112849600032CB8 /* jquery-1.4.js in Resources */ = {isa = PBXBuildFile; fileRef = 00E0002B11117FEE00D9B21C /* jquery-1.4.js */; };
00E0019B1111BC1000D9B21C /* RepController.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E001991111BC1000D9B21C /* RepController.m */; };
00E0019C1111BC1000D9B21C /* RepController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 00E0019A1111BC1000D9B21C /* RepController.xib */; };
00E5B6601109ACF0005EFC03 /* OrgController.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E5B65F1109ACF0005EFC03 /* OrgController.m */; };
Expand Down Expand Up @@ -169,6 +170,7 @@
buildActionMask = 2147483647;
files = (
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
00A9CC701112849600032CB8 /* jquery-1.4.js in Resources */,
0033E30311097B4100E01B07 /* bar-chart.png in Resources */,
0033E30411097B4100E01B07 /* fuel.png in Resources */,
0033E31811097C4E00E01B07 /* star.png in Resources */,
Expand Down

0 comments on commit b10061a

Please sign in to comment.