Skip to content

yoyokko/XibIBOutletIBActionGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XibOutletActionGenerator

XOAG is a python script to generate IBOutlet and IBAction for u.

.xib, .h, .m files will be modified to generate properties, ibactions and connection with .h and .xib file.

Usage:

python generator.py [-a -c] xibfile

-a: arc enabled, if not specified, disable.

-c: make a copy of .xib .h .m file when saving, if not specified, overwrite the original file.

Limitations:

IBAction current only support one argument selector like - (IBAction) buttonAction:(id) sender;

Xcode:

Just create the UIViewController subclass with xib file.

Drag n drop views on your xib and fill the xcode user label with property name and action name. Then run the script in terminal. There u go.

Fill in the property name and action name in XcodeSpecificLabel field in xcode xib editor with this kind of format buttonName;@sel(buttonAction:), labelName or @sel(buttonAction).

image

About

generate iboutlet and ibaction with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages