diff --git a/Plugin/uikit.mm b/Plugin/uikit.mm index 46fb098..09cd42d 100755 --- a/Plugin/uikit.mm +++ b/Plugin/uikit.mm @@ -229,6 +229,54 @@ void setSize(int width, int height) frame.size.height = height; uiView.frame = frame; } + + void setRotation(float angle) + { + uiView.transform = CGAffineTransformMakeRotation(angle * M_PI / 180); + } + void setAlpha(float alpha) + { + uiView.alpha = alpha; + } + + void animateNow(int x, int y, int wid, int hei, float duration, float delay, NSString* animType) + { + duration = duration/1000; + delay = delay/1000; + + UIViewAnimationCurve animCurve; + if ([animType isEqualToString:@"Linear"]) { + animCurve = UIViewAnimationCurveLinear; + } else if ([animType isEqualToString:@"EaseIn"]) { + animCurve = UIViewAnimationCurveEaseIn; + } else if ([animType isEqualToString:@"EaseInOut"]) { + animCurve = UIViewAnimationCurveEaseInOut; + } else if ([animType isEqualToString:@"EaseOut"]) { + animCurve = UIViewAnimationCurveEaseOut; + } else { + animCurve = UIViewAnimationCurveLinear; + } + + CGRect frame = uiView.frame; + frame.origin.x = x; + frame.origin.y = y; + + if (wid) { + frame.size.width = wid; + } + if (hei) { + frame.size.height = hei; + } + + [UIView beginAnimations:nil context:nil]; + [UIView setAnimationDuration:duration]; + [UIView setAnimationDelay:delay]; + [UIView setAnimationCurve:animCurve]; + + uiView.frame = frame; + + [UIView commitAnimations]; + } UIView* uiView; SelectorToEvent* selectorToEvent; @@ -248,6 +296,9 @@ void setSize(int width, int height) static int removeFromParent(lua_State* L); static int setPosition(lua_State* L); static int setSize(lua_State* L); + static int setRotation(lua_State* L); + static int setAlpha(lua_State* L); + static int animateNow(lua_State* L); }; ViewBinder::ViewBinder(lua_State* L) @@ -257,6 +308,9 @@ void setSize(int width, int height) //{"removeFromParent", removeFromParent}, {"setPosition", setPosition}, {"setSize", setSize}, + {"setRotation", setRotation}, + {"setAlpha", setAlpha}, + {"animateNow", animateNow}, {NULL, NULL}, }; @@ -322,6 +376,17 @@ void setSize(int width, int height) return 0; } +int ViewBinder::setAlpha(lua_State* L) +{ + GReferenced* viewObject = static_cast(g_getInstance(L, "View", 1)); + View* view = static_cast(viewObject->proxy()); + + float alpha = luaL_checknumber(L, 2); + view->setAlpha(alpha); + + return 0; +} + int ViewBinder::setSize(lua_State* L) { GReferenced* viewObject = static_cast(g_getInstance(L, "View", 1)); @@ -334,6 +399,35 @@ void setSize(int width, int height) return 0; } +int ViewBinder::setRotation(lua_State* L) +{ + GReferenced* viewObject = static_cast(g_getInstance(L, "View", 1)); + View* view = static_cast(viewObject->proxy()); + + float rot = luaL_checknumber(L, 2); + view->setRotation(rot); + + return 0; +} + +int ViewBinder::animateNow(lua_State* L) +{ + GReferenced* viewObject = static_cast(g_getInstance(L, "View", 1)); + View* view = static_cast(viewObject->proxy()); + + int x = luaL_checkinteger(L, 2); + int y = luaL_checkinteger(L, 3); + int width = luaL_checkinteger(L, 4); + int height = luaL_checkinteger(L, 5); + int duration = luaL_checkinteger(L, 6); + int delay = luaL_checkinteger(L, 7); + const char* animType = luaL_checkstring(L, 8); + view->animateNow(x, y, width, height, duration, delay, [NSString stringWithUTF8String:animType]); + + return 0; +} + + //---------------------------------------------------------------------------------------------- #pragma mark ---- UISwitch ---- @@ -1205,8 +1299,14 @@ void setBGImage(NSString* imagefile) int ButtonBinder::create(lua_State* L) { Button* button = new Button(L); - const char* type = luaL_checkstring(L, 1); - button->create([NSString stringWithUTF8String:type]); + + int noOfArguments = lua_gettop(L); + const char* type = nil; + if(noOfArguments < 1) + type = "Rounded Rect"; + else + type = luaL_checkstring(L, 1); + button->create([NSString stringWithUTF8String:type]); g_pushInstance(L, "Button", button->object()); @@ -1587,6 +1687,8 @@ virtual void create() UILabel* label = [[UILabel alloc] init]; [label setFont:[UIFont systemFontOfSize: 12]]; [label setTextAlignment:UITextAlignmentLeft]; + [label setBackgroundColor:[UIColor clearColor]]; + [label setOpaque:FALSE]; [label setNumberOfLines:1]; [label retain]; @@ -1617,6 +1719,23 @@ void setFont(NSString* fontname, CGFloat s) { [(UILabel*)uiView setFont:[UIFont fontWithName:fontname size:s]]; } + + void setTextAlignment(NSString* align) + { + if ([align isEqualToString:@"Left"]) { + [(UILabel*)uiView setTextAlignment:NSTextAlignmentLeft]; + }else if ([align isEqualToString:@"Center"]) { + [(UILabel*)uiView setTextAlignment:NSTextAlignmentCenter]; + }else if ([align isEqualToString:@"Right"]) { + [(UILabel*)uiView setTextAlignment:NSTextAlignmentRight]; + }else if ([align isEqualToString:@"Natural"]) { + [(UILabel*)uiView setTextAlignment:NSTextAlignmentNatural]; + }else if ([align isEqualToString:@"Justified"]) { + [(UILabel*)uiView setTextAlignment:NSTextAlignmentJustified]; + }else{ + [(UILabel*)uiView setTextAlignment:NSTextAlignmentLeft]; + } + } }; //---------------------------------------------------------------------------------------------- @@ -1632,6 +1751,7 @@ void setFont(NSString* fontname, CGFloat s) static int setTextColor(lua_State* L); static int setBGColor(lua_State* L); static int setFont(lua_State* L); + static int setTextAlignment(lua_State* L); }; LabelBinder::LabelBinder(lua_State* L) @@ -1641,6 +1761,7 @@ void setFont(NSString* fontname, CGFloat s) {"setTextColor", setTextColor}, {"setBGColor", setBGColor}, {"setFont", setFont}, + {"setTextAlignment", setTextAlignment}, {NULL, NULL}, }; @@ -1717,6 +1838,16 @@ void setFont(NSString* fontname, CGFloat s) return 0; } +int LabelBinder::setTextAlignment(lua_State* L) +{ + GReferenced* labelObject = static_cast(g_getInstance(L, "Label", 1)); + Label* label = static_cast(labelObject->proxy()); + + const char* align = luaL_checkstring(L, 2); + label->setTextAlignment([NSString stringWithUTF8String:align]); + return 0; +} + #pragma mark ---- UITableView ---- //---------------------------------------------------------------------------------------------- @@ -1734,6 +1865,7 @@ @interface UITableViewDelegate : NSObjectcreate(text); g_pushInstance(L, "TableView", tableView->object()); @@ -2105,6 +2368,17 @@ void toggleEditing(Boolean animated) return 0; } +int TableViewBinder::setAccessoryType(lua_State *L) +{ + GReferenced* tableViewObject = static_cast(g_getInstance(L, "Label", 1)); + TableView *tableView = static_cast(tableViewObject->proxy()); + + //pop the text value from the stack + NSString *type = [NSString stringWithUTF8String:luaL_checkstring(L, -1)]; + tableView->setAccessoryType(type); + return 0; +} + int TableViewBinder::setSeparatorStyle(lua_State *L) { GReferenced* tableViewObject = static_cast(g_getInstance(L, "Label", 1)); @@ -2141,6 +2415,32 @@ void toggleEditing(Boolean animated) return 0; } +int TableViewBinder::removeRow(lua_State* L) +{ + GReferenced* tableViewObject = static_cast(g_getInstance(L, "Label", 1)); + TableView *tableView = static_cast(tableViewObject->proxy()); + + NSString *text = [NSString stringWithUTF8String:luaL_checkstring(L, -1)]; + int sec = lua_tointeger(L, -2); + int ro = lua_tointeger(L, -3); + + tableView->removeRow(ro,sec,text); + return 0; +} + +int TableViewBinder::deselectRow(lua_State* L) +{ + GReferenced* tableViewObject = static_cast(g_getInstance(L, "Label", 1)); + TableView *tableView = static_cast(tableViewObject->proxy()); + + BOOL anim = lua_toboolean(L, -1); + int sec = lua_tointeger(L, -2); + int ro = lua_tointeger(L, -3); + + tableView->deselectRow(ro,sec,anim); + return 0; +} + //---------------------------------------------------------------------------------------------- #pragma mark ---- UIWebView ---- @@ -2560,6 +2860,27 @@ virtual NSInteger getPickedRow() return [rowNames objectAtIndex:[pickerView selectedRowInComponent:0]]; } + + virtual void showSelectionIndicator(BOOL show) + { + pickerView.showsSelectionIndicator = show; + /* + //Make a view to set as background of UIPickerView + UIView * viewForPickerView = [[UIView alloc]initWithFrame:CGRectMake(0.0, 0.0, 320.0, 216.0)]; + [viewForPickerView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"pickerViewBackground.png"]]]; + + [[[pickerView subviews]objectAtIndex:2] addSubview: viewForPickerView]; + + //UIPickerView has 8 subviews like, background, rows, container etc. + // hide unnecessary subview + + [(UIView*)[[pickerView subviews] objectAtIndex:3] setHidden:YES]; + [(UIView*)[[pickerView subviews] objectAtIndex:5] setHidden:YES]; + [(UIView*)[[pickerView subviews] objectAtIndex:6] setHidden:YES]; + [(UIView*)[[pickerView subviews] objectAtIndex:7] setHidden:YES]; + [(UIView*)[[pickerView subviews] objectAtIndex:8] setHidden:YES]; + */ + } private: @@ -2581,6 +2902,7 @@ virtual NSInteger getPickedRow() static int setRow(lua_State* L); static int getPickedRow(lua_State* L); static int getPickedItem(lua_State* L); + static int showSelectionIndicator(lua_State* L); }; @@ -2592,6 +2914,7 @@ virtual NSInteger getPickedRow() {"getPickedRow", getPickedRow}, {"setRow", setRow}, {"getPickedItem", getPickedItem}, + {"showSelectionIndicator", showSelectionIndicator}, {NULL, NULL}, }; @@ -2675,6 +2998,19 @@ virtual NSInteger getPickedRow() return 1; } +int PickerViewBinder::showSelectionIndicator(lua_State* L) +{ + GReferenced* object = static_cast(g_getInstance(L, "PickerView", 1)); + PickerView* pickerObject = static_cast(object->proxy()); + + BOOL i = lua_toboolean(L, 2); + + pickerObject->showSelectionIndicator(i); + + return 0; + +} + //-------------------------------------------// //------- UIPickerView ends here -------------// //-------------------------------------------// @@ -2777,6 +3113,41 @@ - (BOOL)textFieldShouldEndEditing:(UITextField *)textField return YES; } +- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField +{ + + getObject(L, target); + + if (!lua_isnil(L, -1)) + { + lua_getfield(L, -1, "dispatchEvent"); + + lua_pushvalue(L, -2); + + lua_getglobal(L, "Event"); + lua_getfield(L, -1, "new"); + lua_remove(L, -2); + lua_pushstring(L, "onTextFieldEditBegin"); + lua_call(L, 1, 1); + + NSString *text = textField.text; + lua_pushstring(L, [text UTF8String]); + lua_setfield(L, -2, "text"); + + if (lua_pcall(L, 2, 0, 0) != 0) + { + g_error(L, lua_tostring(L, -1)); + return true; + } + } + + lua_pop(L, 1); + + //NSLog(@"TextField textFieldShouldBeginEditing"); + + return YES; +} + @end @@ -2811,12 +3182,127 @@ virtual void create(NSString* text) uiView = textField; } + + virtual void setReturnKeyType(NSString* type) + { + if ([type isEqualToString:@"Done"]) { + textField.returnKeyType = UIReturnKeyDone; + } else if ([type isEqualToString:@"Emergency Call"]) { + textField.returnKeyType = UIReturnKeyEmergencyCall; + } else if ([type isEqualToString:@"Go"]) { + textField.returnKeyType = UIReturnKeyGo; + } else if ([type isEqualToString:@"Google"]) { + textField.returnKeyType = UIReturnKeyGoogle; + } else if ([type isEqualToString:@"Join"]) { + textField.returnKeyType = UIReturnKeyJoin; + } else if ([type isEqualToString:@"Next"]) { + textField.returnKeyType = UIReturnKeyNext; + } else if ([type isEqualToString:@"Route"]) { + textField.returnKeyType = UIReturnKeyRoute; + } else if ([type isEqualToString:@"Search"]) { + textField.returnKeyType = UIReturnKeySearch; + } else if ([type isEqualToString:@"Send"]) { + textField.returnKeyType = UIReturnKeySend; + } else if ([type isEqualToString:@"Yahoo"]) { + textField.returnKeyType = UIReturnKeyYahoo; + } else { + textField.returnKeyType = UIReturnKeyDefault; + } + + } + + virtual void setBorderStyle(NSString* style) + { + if ([style isEqualToString:@"Bezel"]) { + textField.borderStyle = UITextBorderStyleBezel; + } else if ([style isEqualToString:@"Line"]) { + textField.borderStyle = UITextBorderStyleLine; + } else if ([style isEqualToString:@"None"]) { + textField.borderStyle = UITextBorderStyleNone; + } else if ([style isEqualToString:@"Rounded Rect"]) { + textField.borderStyle = UITextBorderStyleRoundedRect; + } else { + textField.borderStyle = UITextBorderStyleNone; + } + } virtual void setText(NSString* text) { textField.text = text; } + + virtual void setKeyboardType(NSString* type) + { + if ([type isEqualToString:@"Default"]) { + textField.keyboardType = UIKeyboardTypeDefault; + } else if ([type isEqualToString:@"Alphabet"]) { + textField.keyboardType = UIKeyboardTypeAlphabet; + } else if ([type isEqualToString:@"ASCIICapable"]) { + textField.keyboardType = UIKeyboardTypeASCIICapable; + } else if ([type isEqualToString:@"Decimal Pad"]) { + textField.keyboardType = UIKeyboardTypeDecimalPad; + } else if ([type isEqualToString:@"Email Address"]) { + textField.keyboardType = UIKeyboardTypeEmailAddress; + } else if ([type isEqualToString:@"Name Phone Pad"]) { + textField.keyboardType = UIKeyboardTypeNamePhonePad; + } else if ([type isEqualToString:@"Number Pad"]) { + textField.keyboardType = UIKeyboardTypeNumberPad; + } else if ([type isEqualToString:@"Numbers and Punctuation"]) { + textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation; + } else if ([type isEqualToString:@"Phone Pad"]) { + textField.keyboardType = UIKeyboardTypePhonePad; + } else if ([type isEqualToString:@"Twitter"]) { + textField.keyboardType = UIKeyboardTypeTwitter; + } else if ([type isEqualToString:@"URL"]) { + textField.keyboardType = UIKeyboardTypeURL; + } else { + textField.keyboardType = UIKeyboardTypeDefault; + } + } + + virtual void setClearButton(NSString* type) + { + if ([type isEqualToString:@"Never"]) { + textField.clearButtonMode = UITextFieldViewModeNever; + } else if ([type isEqualToString:@"While Editing"]) { + textField.clearButtonMode = UITextFieldViewModeWhileEditing; + } else if ([type isEqualToString:@"Unless Editing"]) { + textField.clearButtonMode = UITextFieldViewModeUnlessEditing; + } else if ([type isEqualToString:@"Always"]) { + textField.clearButtonMode = UITextFieldViewModeAlways; + } else { + textField.clearButtonMode = UITextFieldViewModeNever; + } + } + + virtual void setKeyboardAppearance(NSString* style) + { + if ([style isEqualToString:@"Default"]) { + textField.keyboardAppearance = UIKeyboardAppearanceDefault; + } else if ([style isEqualToString:@"Alert"]) { + textField.keyboardAppearance = UIKeyboardAppearanceAlert; + } else { + textField.keyboardAppearance = UIKeyboardAppearanceDefault; + } + } + + virtual void setTextAlign(NSString* align) + { + if ([align isEqualToString:@"Left"]) { + textField.textAlignment = NSTextAlignmentLeft; + }else if ([align isEqualToString:@"Center"]) { + textField.textAlignment = NSTextAlignmentCenter; + }else if ([align isEqualToString:@"Right"]) { + textField.textAlignment = NSTextAlignmentRight; + }else if ([align isEqualToString:@"Natural"]) { + textField.textAlignment = NSTextAlignmentNatural; + }else if ([align isEqualToString:@"Justified"]) { + textField.textAlignment = NSTextAlignmentJustified; + }else{ + textField.textAlignment = NSTextAlignmentLeft; + } + } virtual NSString* getText() { @@ -2845,6 +3331,14 @@ virtual void showKeyboard() [textField becomeFirstResponder]; } + + virtual void hideKeyboard() + { + + // hide keyboard + [textField resignFirstResponder]; + + } private: lua_State* L; @@ -2860,23 +3354,37 @@ virtual void showKeyboard() private: static int create(lua_State* L); + static int setReturnKeyType(lua_State* L); + static int setBorderStyle(lua_State* L); static int destruct(lua_State* L); static int setText(lua_State* L); + static int setKeyboardType(lua_State* L); + static int setKeyboardAppearance(lua_State* L); + static int setTextAlign(lua_State* L); + static int setClearButton(lua_State* L); static int getText(lua_State* L); static int setTextColor(lua_State* L); static int setBGColor(lua_State* L); static int showKeyboard(lua_State* L); + static int hideKeyboard(lua_State* L); }; TextFieldBinder2::TextFieldBinder2(lua_State* L) { const luaL_Reg functionlist[] = { + {"setReturnKeyType", setReturnKeyType}, + {"setBorderStyle", setBorderStyle}, {"setText", setText}, + {"setKeyboardType", setKeyboardType}, + {"setKeyboardAppearance", setKeyboardAppearance}, + {"setTextAlign", setTextAlign}, + {"setClearButton", setClearButton}, {"getText", getText}, {"setTextColor", setTextColor}, {"setBGColor", setBGColor}, {"showKeyboard", showKeyboard}, + {"hideKeyboard", hideKeyboard}, {NULL, NULL}, }; @@ -2924,6 +3432,68 @@ virtual void showKeyboard() return 0; } +int TextFieldBinder2::setKeyboardType(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + const char* txt = luaL_checkstring(L, 2); + field->setKeyboardType([NSString stringWithUTF8String:txt]); + + return 0; +} + +int TextFieldBinder2::setKeyboardAppearance(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + const char* txt = luaL_checkstring(L, 2); + field->setKeyboardAppearance([NSString stringWithUTF8String:txt]); + + return 0; +} + +int TextFieldBinder2::setTextAlign(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + //NSLog(@"Binder setText"); + const char* align = luaL_checkstring(L, 2); + //NSLog(@"Binder setText"); + field->setTextAlign([NSString stringWithUTF8String:align]); + + return 0; +} + +int TextFieldBinder2::setReturnKeyType(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + const char* txt = luaL_checkstring(L, 2); + field->setReturnKeyType([NSString stringWithUTF8String:txt]); + + return 0; +} + +int TextFieldBinder2::setBorderStyle(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + const char* txt = luaL_checkstring(L, 2); + field->setBorderStyle([NSString stringWithUTF8String:txt]); + + return 0; +} + +int TextFieldBinder2::setClearButton(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + const char* txt = luaL_checkstring(L, 2); + field->setClearButton([NSString stringWithUTF8String:txt]); + + return 0; +} + int TextFieldBinder2::getText(lua_State* L) { GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); @@ -2972,6 +3542,14 @@ virtual void showKeyboard() return 1; } +int TextFieldBinder2::hideKeyboard(lua_State* L) +{ + GReferenced* textFieldObject = static_cast(g_getInstance(L, "TextField2", 1)); + TextField2* field = static_cast(textFieldObject->proxy()); + field->hideKeyboard(); + //NSLog(@"Binder hideKeyboard"); + return 1; +} //-------------------------------------------// //------- UITextField ends here -------------// diff --git a/README b/README index 26bdf00..0930216 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Modified 17th August Giles Allensby +Modified 21st October Giles Allensby UIActivityIndicatorView Thanks to @techdojo ***** UIKit for Gideros Studio **** @@ -40,6 +40,12 @@ View : GEventDispatcherProxy void removeFromParent() void setPosition(int x, int y) void setSize(int width, int height) + void setAlpha(float alpha) + void setRotation(float angle) + void animateNow(int x, int y, int width, int height, float duration, float delay, String animType) + + NOTE: + Available anim Types are "Linear", "EaseIn", "EaseInOut" and "EaseOut" Button : View new(string type) @@ -61,6 +67,10 @@ Label : View void setTextColor(float r, float g, float b) void setBGColor(float r, float g, float b) void setFont(string fontname, float s) + void setTextAlignment(string alignment) + + NOTE: + Available alignments are "Left", "Center", "Right", "Natural" and "Justified" ImageView : View new(string imagefile) @@ -70,7 +80,7 @@ ImageView : View NOTE: Available Modes are "Scale To Fill", "Aspect Fit", "Aspect Fill", "Redraw", "Center", "Top", "Bottom", "Left", "Right", "Top Left", "Top Right", "Bottom Left" and "Bottom Right" - + ActivityIndicator : View --Thanks to @techdojo new(string type) void setColor(float r, float g, float b, float a) @@ -119,9 +129,24 @@ TextField2 : View void setTextColor(float r, float g, float b) void setBGColor(float r, float g, float b) void showKeyboard() + void hideKeyboard() + void setReturnKeyType(string type) + void setBorderStyle(string style) + void setKeyboardType(string type) + void setClearButton(string type) + void setKeyboardAppearance(string style) + void setTextAlign(string align) Generated events: "onTextFieldEdit", "onTextFieldReturn" + NOTE: + Available Return Key Types are "Done", "Emergency Call", "Go", "Google", "Join", "Next", "Route", "Search", "Send" and "Yahoo" + Available Border Styles are "Bezel", "Line", "None" and "Rounded Rect" + Available Keyboard Types are "Default", "Alphabet", "ASCIICapable", "Decimal Pad", "Email Address", "Name Phone Pad", "Number Pad", "Numbers and Punctuation", "Phone Pad", "Twitter" and "URL" + Available Clear Button Types are "While Editing", "Unless Editing", "Never" and "Always" + Available Keyboard Appearance Styles are "Default" and "Alert" + Available Text Alignments are "Left", "Center", "Right", "Natural" and "Justified" + WebView : View new(string url) void loadLocalFile(string filename) @@ -133,7 +158,8 @@ PickerView : View virtual int getRowCount() virtual void setRow(int row) virtual int getPickedRow() - virtual string getPickedItem() + virtual string getPickedItem() + void showSelectionIndicator(BOOL show) Generated event: "onPickerRows" @@ -159,11 +185,15 @@ TableView : View void setCellText(string text) void setbackColor(float r, float g, float b, float a) - void setSeperatorStyle(string style) - void setSeperatorColor(float r, float g, float b, float a) - void addRow(NSArray data, int rowNum, int sectNum, String animStyle) -- use luaTableToArray() - void reloadRow(NSArray data, int rowNum, int sectNum, String animStyle) -- use luaTableToArray() - void toggleEditing(Boolean animated) + void setSeperatorStyle(string style) + void setSeperatorColor(float r, float g, float b, float a) + void addRow(NSArray data, int rowNum, int sectNum, String animStyle) -- use luaTableToArray() + void reloadRow(NSArray data, int rowNum, int sectNum, String animStyle) -- use luaTableToArray() + void toggleEditing(Boolean animated) + + void removeRow(int rowNum, int sectNum, string animStyle) + void setAccessoryType(string accessoryType) + void deselectRow(int rowNum, int sectNum, BOOL anim) setPosition(x, y) setSize(width, height) @@ -175,5 +205,6 @@ TableView : View Available Table Types are "Plain" and "Grouped" Available Row Animations are "None", "Fade", "Right", "Left", "Top", "Bottom" and "Middle" Available Seperator Styles are "None", "Line" and "Etched" + Available Accessory Types are "None", "DisclosureIndicator", "DetailDisclosureButton" and "Checkmark" diff --git a/TableView Example/.tmp/UIKitTableView.md5 b/TableView Example/.tmp/UIKitTableView.md5 new file mode 100644 index 0000000..3afe3d1 Binary files /dev/null and b/TableView Example/.tmp/UIKitTableView.md5 differ