Skip to content

Library to import and recreate interfaces from PSD files exported by FERRYScript

Notifications You must be signed in to change notification settings

TheDamArmada/FERRYDockeriOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FERRYDocker v1.0 Readme
Library to import and recreate functional interfaces create in Photoshop and exported using FERRYScript
http://ferry.thedamarmada.com


HOW TO INCLUDE IT IN YOUR PROJECT:

1. Add the framework as linked library:
	. select on your project 
	. select your target
	. On "Link Binary with Libraries" click on +
	. Select "Add another..."
	. Select FERRYDocker.framework

2. The framework uses TBXML which requires the libz.dylib library.
  	. select on your project 
	. select your target
	. On "Link Binary with Libraries" click on +
	. Select "libz.dylib"


3. Import FERRY Docker to your view/ viewcontroller
	. #import <FERRYDocker/FERRY.h> or <FERRYDocker/FERRYDocker.h>


METHODS:

+(FERRYDocker *) buildFromFile:(NSString *)file toView:(UIView *)tgtView;

    Recreates the XML file in the specified UIView 
    Returns an autoreleased FERRYDocker object



 
+(FERRYDocker *) buildFromFile:(NSString *)file toView:(UIView *)tgtView cacheImages:(BOOL)_doCache;

    Recreates the XML file in the specified UIView caching the images using [UIImage imageNamed:]
    Returns an autoreleased FERRYDocker object
 
    Alternatively you can also specified what images will be cached on the XML file. Add the attribute 'cache="YES"' no the nodes you want to cache


 

-(UIView *) getViewWithName:(NSString *)viewName;

    Returns the UIView with the specified name (from XML file)
    Please note that if a button has defined both states (on/off) the name is "but_"+name ; no sufix ("_on"/"_off")

 


-(UIView *) getViewWithId:(int)layerId;

    Returns the UIView with the specified id
    Please note that numerical ids may change every time FERRYScript is executed


More info at:
http://ferry.thedamarmada.com




-----


FERRYDocker includes TBXML

TBXML License:

Copyright (c) 2009 Tom Bradley
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


About

Library to import and recreate interfaces from PSD files exported by FERRYScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published