Comments (5)
1.1.9 正常,型号 iPad
iOS 14.5
是frame没改变?1.2.0相对于1.1.9来说 啥也没改哦。。。就只是去掉了警告而已。。
from wmzbanner.
对的,frame 没变,打断点调试block执行多次,有正确的frame被赋值也有错误的被赋值,最终呈现的是错误的frame,改回1.1.9就正常了
from wmzbanner.
CGFloat height = VIPCycleHeight;
WS(weakSelf);
CGFloat imaCount = (CGFloat)imgArray.count;
CGFloat cotrolWidth = imaCount * 18;
CGFloat x = 0.5 * (KWidth - cotrolWidth);
CGFloat y = height - 32 - 38;
WMZBannerParam *param = BannerParam()
.wFrameSet(CGRectMake(0, 0, KWidth, height))
//item之间的间距
.wLineSpacingSet(8)
.wCustomImageRadioSet(12)
//item的size
.wItemSizeSet(CGSizeMake(0.4355 * KWidth, height))
//固定移动的距离 size*倍数
.wContentOffsetXSet(0.5)
//默认选中
.wSelectIndexSet(0)
.wRepeatSet(YES)
.wAutoScrollSecondSet(6)
.wAutoScrollSet(YES)
//item中心位置
.wPositionSet(BannerCellPositionCenter)
//整体左右偏移 item.width的一半 让第一个和最后一个可以居中
.wSectionInsetSet(UIEdgeInsetsMake(0,BannerWitdh*0.4, 0, BannerWitdh*0.4))
.wEventClickSet( ^ (id anyID, NSInteger index) {
[weakSelf clickImage:index];
})
.wBannerControlColorSet(kCOLOR_FFFFFF_04)
.wBannerControlSelectColorSet(kCOLOR_FFFFFF)
.wBannerControlImageSizeSet(CGSizeMake(6, 6))
.wBannerControlSelectImageSizeSet(CGSizeMake(6, 6))
.wBannerControlSelectMarginSet(0)
.wCustomControlSet(^(UIControl *pageControl) {
//随意改变xy值
CGRect rect = pageControl.frame;
rect.origin.x = x;
rect.origin.y = y;
rect.size.width = cotrolWidth;
pageControl.frame = rect;
})
//自定义pageControl的位置
.wDataSet(imgArray);
from wmzbanner.
删除后正常显示
from wmzbanner.
删除后正常显示
哦 我知道了 你应该是更新了数据吧 难怪我这重现不了 确实这里更新数据后被重置frame了
from wmzbanner.
Related Issues (20)
- 链式语法有个很大的问题,就是如果对象是nil,调用block会crash HOT 1
- 拖拽结束,点击没有反应 HOT 3
- 图片过多滑动到最后一张图片问题 HOT 3
- 如何调整pagecontrol 和cell 之间距离 HOT 2
- 设置成如下样式,滚动方向错误 HOT 2
- 宽度如何压缩
- 请问如何向左边自动滑? HOT 3
- 数组越界:*** -[__NSArrayI objectAtIndexedSubscript:]: index 1753 beyond bounds [0 .. 6] HOT 1
- 叠加式卡片轮播 (纵向) 的层级展示可以放到上面嘛 HOT 1
- 如何在滚动结束后获取最中间的 cell 或者index?
- 手势过大 会同时滚动很多张 如何只滚动一张? HOT 2
- 设计不合理,提出自己几点建议 HOT 3
- 一个轮播图里有多个自定义cell该如何设置 HOT 1
- 请问下老哥堆叠的样式,怎么才能滑动时,当前的page不放大? HOT 2
- 首次进入调用 - (void)scrolToPath:(NSIndexPath*)path animated:(BOOL)animated滚动错乱
- wPositionSet 置地有些问题想请教一下
- Swift 链式使用问题
- 无法使用Swift创建的UICollectionViewCell
- 叠加样式滚到到最后一个没有被放大,再划一下才能放大
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmzbanner.