Coder Social home page Coder Social logo

Comments (3)

wwmz avatar wwmz commented on August 26, 2024

.wMenuFixRightDataSet(@{@"name":@"金币",@"image":@"f_arrow_upbai"})
.wEventFixedClickSet(^(id anyID, NSInteger index) {
WMZPageNaviBtn *btn = anyID;
[btn setTitle:@"更新" forState:UIControlStateNormal];
})

是这样更新右边固定标题的吗?这样写页面会变形

不是这样设置的,重新设置属性 调用更新就行了
self.param.wMenuFixRightDataSet(@{@"name":@"更新",@"image":@"f_arrow_upbai"})
[self updatePageController];

from wmzpagecontroller.

wangyixin avatar wangyixin commented on August 26, 2024

WMZPageParam *param = PageParam()
.wTitleArrSet(@[@"持仓", @"历史"])
.wMenuTitleColorSet([UIColor grayColor])
.wControllersSet(@[[FWFuPositionViewController new], [FWFuHistoryViewController new]])
.wTopSuspensionSet(YES)
.wScrollCanTransferSet(FALSE)
.wMenuImagePositionSet(PageBtnPositionRight)
.wMenuImageMarginSet(8)
.wMenuFixShadowSet(FALSE)
.wMenuFixRightDataSet(@{@"name":@"金币",@"image":@"f_arrow_upbai"})
.wEventFixedClickSet(^(id anyID, NSInteger index) {
self.param.wMenuFixRightDataSet(@{@"name":@"更新",@"image":@"f_arrow_upbai"});
[self updatePageController];
})
我这样设置之后每次点击一下右边按钮,右边按钮都会向左边移动一下。请问是怎么回事

from wmzpagecontroller.

wwmz avatar wwmz commented on August 26, 2024

WMZPageParam *param = PageParam()
.wTitleArrSet(@[@"持仓", @"历史"])
.wMenuTitleColorSet([UIColor grayColor])
.wControllersSet(@[[FWFuPositionViewController new], [FWFuHistoryViewController new]])
.wTopSuspensionSet(YES)
.wScrollCanTransferSet(FALSE)
.wMenuImagePositionSet(PageBtnPositionRight)
.wMenuImageMarginSet(8)
.wMenuFixShadowSet(FALSE)
.wMenuFixRightDataSet(@{@"name":@"金币",@"image":@"f_arrow_upbai"})
.wEventFixedClickSet(^(id anyID, NSInteger index) {
self.param.wMenuFixRightDataSet(@{@"name":@"更新",@"image":@"f_arrow_upbai"});
[self updatePageController];
})
我这样设置之后每次点击一下右边按钮,右边按钮都会向左边移动一下。请问是怎么回事

循环 self.upSc.btnArr 找个tag为10086的按钮 直接更新title即可

from wmzpagecontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.