Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add a sample image in the readme

  • Loading branch information...
commit 4304187f34c716430dbaa0afc47bc2eb4618515b 1 parent 034b243
@bjhomer authored
2 
@@ -8,6 +8,8 @@ dimensions of the view. It supports selection, scrolling, drag-and-drop
rearranging, and drag-and-drop deletion. The API is patterned after UITableView,
so it will be familiar to Cocoa Touch programmers.
+![Sample screenshot](
An HSImageSidebarView is created using the standard initWithFrame: method
on UIView.
5 Resources/en.lproj/SidebarViewController.xib
@@ -34,8 +34,8 @@
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIView" id="752737248">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">290</int>
- <string key="NSFrameSize">{768, 90}</string>
+ <int key="NSvFlags">276</int>
+ <string key="NSFrameSize">{80, 1004}</string>
<reference key="NSSuperview" ref="766721923"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="798373514"/>
@@ -51,6 +51,7 @@
<string key="NSFrame">{{400, 350}, {194, 37}}</string>
<reference key="NSSuperview" ref="766721923"/>
<reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
2  Sample/SidebarViewController.m
@@ -129,7 +129,7 @@ -(void)sidebar:(HSImageSidebarView *)sidebar didTapImageAtIndex:(NSUInteger)anIn
controller.popoverContentSize = content.view.frame.size;
controller.delegate = self;
CGRect frame = [sidebar frameOfImageAtIndex:anIndex];
- [controller presentPopoverFromRect:frame inView:sidebar permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
+ [controller presentPopoverFromRect:frame inView:sidebar permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
self.popover = controller;
[content release];
BIN  Sample/sampleImage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4304187

Please sign in to comment.
Something went wrong with that request. Please try again.