TWWidget 0.1

TWWidget 0.1

TestsTested
LangLanguage Obj-CObjective C
License BSD
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Warut Surapat

TWWidget, a widget library for Taskworld mobile app.

Usage Example

Displaying image view with filled-circle background.

  TWWidget* widget = [TWWidget viewWidgetWithFrame:CGRectMake(0, 0, 40, 40)];
  widget.imageName = @"icon_critical";
  widget.backgroundColor = [UIColor greenColor];

  widget.widgetDisplayMode = TWWidgetDisplayModeCircle;
  [self.contentView addSubview:widget];

Displaying text view with filled-rectangle background.

  TWWidget* widget = [TWWidget viewWidgetWithFrame:CGRectMake(0, 0, 40, 40)];
  widget.text = @"Hello";
  widget.backgroundColor = [UIColor greenColor];

  widget.widgetDisplayMode = TWWidgetDisplayModeRectangle;
  [self.contentView addSubview:widget];