Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Commit

Permalink
Demonstrate use of SSIndicatorLabel through a Xib
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Dec 4, 2011
1 parent b0d6769 commit 8f07f11
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/Example/SSViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
#import <UIKit/UIKit.h>
#import "SSIndicatorLabel.h"
@interface SSViewController : UIViewController
@property(nonatomic,retain) SSIndicatorLabel *indicatorLabel;
@property(nonatomic,retain) IBOutlet SSIndicatorLabel *indicatorLabel;
- (IBAction)startLoading:(id)sender;
@end
1 change: 0 additions & 1 deletion Example/Example/SSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.indicatorLabel = [[[SSIndicatorLabel alloc] initWithFrame:CGRectMake(0, 0, 200, 20)] autorelease];
self.indicatorLabel.backgroundColor = self.view.backgroundColor;
self.indicatorLabel.textLabel.textColor = [UIColor whiteColor];
self.indicatorLabel.center = CGPointMake(160, 240);
Expand Down
57 changes: 55 additions & 2 deletions Example/Example/en.lproj/SSViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<string key="NSFrame">{{124, 341}, {72, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:225</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
Expand Down Expand Up @@ -70,11 +71,28 @@
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUIView" id="523114615">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{80, 220}, {160, 20}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="688080117"/>
<string key="NSReuseIdentifierKey">_NS:196</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int>
</object>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="688080117"/>
<reference key="NSNextKeyView" ref="523114615"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">10</int>
<object class="NSImage" key="NSImage">
Expand Down Expand Up @@ -4484,6 +4502,14 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
</object>
<int key="connectionID">7</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">indicatorLabel</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="523114615"/>
</object>
<int key="connectionID">11</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">startLoading:</string>
Expand Down Expand Up @@ -4518,6 +4544,7 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
<reference key="object" ref="774585933"/>
<array class="NSMutableArray" key="children">
<reference ref="688080117"/>
<reference ref="523114615"/>
</array>
<reference key="parent" ref="0"/>
</object>
Expand All @@ -4526,24 +4553,39 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
<reference key="object" ref="688080117"/>
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="523114615"/>
<reference key="parent" ref="774585933"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">SSViewController</string>
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="10.CustomClassName">SSIndicatorLabel</string>
<string key="10.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">9</int>
<int key="maxID">11</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">SSIndicatorLabel</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/SSIndicatorLabel.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">SSViewController</string>
<string key="superclassName">UIViewController</string>
Expand All @@ -4558,6 +4600,17 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">indicatorLabel</string>
<string key="NS.object.0">SSIndicatorLabel</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">indicatorLabel</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">indicatorLabel</string>
<string key="candidateClassName">SSIndicatorLabel</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/SSViewController.h</string>
Expand Down

0 comments on commit 8f07f11

Please sign in to comment.