UIView.zzNew().zzOrigin(20,100).zzSize(100,100).zzBgColor(UIColor.red()).zzInToView(self.view);
UILabel.zzNew().zzText(@"hello").zzTextColor(ZZHexC(@"082323")).zzFontNum(18).zzFrame(10,20,100,20).zzInToView(self.view);
UIImageView.zzNew().zzImageName(@"ts.png").zzFrame(100,200,100,100).zzInToView(self.view).zzBgColor(UIColor.black());
UITextField.zzNew().zzFontNum(15).zzTextColor(ZZComRgbC(51)).zzReturnKeyType(UIReturnKeyDone).zzDelegate(self).zzClearButtonMode(UITextFieldViewModeAlways).zzBorderStyle(UITextBorderStyleNone).w(100).h(44).zzInToView(self.view).zzCenter(self.view.center).zzUITextField().zzPlaceholder(@"請(qǐng)輸入內(nèi)容");
UIButton.zzNew(UIButtonTypeRoundedRect).zzFontNum(18).zzBgColor(UIColor.blue()).zzFrame(100,400,100,44).zzCornerRadius(5).zzUIButton().zzTitleState(@"commmit",UIControlStateNormal).zzTitleColorNormal(ZZHexC(@"082323")).zzInToView(self.view);
UITextView.zzNew().zzTextColor(ZZHexC(@"eed092")).zzFontNum(20).zzText(@"yqdjskdjsjskinksk").x(220).y(60).w(100).h(80).zzBgColor(ZZComRgbC(239)).zzInToView(self.view);
#warning提示:當(dāng)參數(shù)出現(xiàn)中文的時(shí)候會(huì)出現(xiàn)鏈?zhǔn)秸Z(yǔ)法失效解決方案出現(xiàn)中文的參數(shù)單獨(dú)設(shè)置
//eg
UIButton*sender =UIButton.zzNew(UIButtonTypeRoundedRect).zzTitleColorNormal(ZZHexC(@"082323")).zzTitleColorSelected(ZZHexC(@"082323")).zzFontNum(18).zzBgColor(UIColor.blue()).zzFrame(220,400,100,44).zzCornerRadius(5).zzInToView(self.view).zzUIButton();
sender.zzTitleNormal(@"提交".zzAdd(@"????"));
sender.zzTitleHighlighted(@"高亮??");
sender.zzTitleSelected(@"選擇了");
歡迎點(diǎn)贊 star。