Class
HSWidgetResources
A convenience class to access the assets used by HSWidgets for consistent UI.
Declaration
@interface HSWidgetResources : NSObject
Description
HSWidgets takes pride in providing familiar, consistent interface elements. It makes use of well known iOS icons where possible. A well made custom widget should incorporate these principles by utilizing the provided familiar assets.
Topics
Domain
-
HSWidgetDomain
Domain name used by HSWidgets for storing user preferences in NSUserDefaults, avoid storing any widget preferences in this domain.
Asset Names
-
HSWidgetExpandImageName
Image used for expand accessory.
-
HSWidgetShrinkImageName
Image used for shrink accessory.
-
HSWidgetSettingsImageName
Image used for settings accessory.
-
HSWidgetPlaceholderImageName
Image containing dashed rounded rect to be used for placeholder icon.
-
HSWidgetPlaceholderShapeImageName
Image used for the placeholder shape icon.
Getting Assets
-
+ imageNamed:
Create an image object from the specified asset name.
Bezier Shapes
-
HSWidgetBezierShape
Constants for specifying a bezier shape.
-
+ allBezierShapes
Get information about all the provided bezier shapes.
-
+ bezierPathForRect:withShape:lineThickness:
Get the bezier path for the specified bezier shape.