私信 访问主页
Is there a way to add an Image and a Multiline text on the left side? I could add the multiline text as middle or right item,but the label is getting attached to the right side of the line depending on the width.
该提问来源于开源项目 sobri909/MGBoxKit
点赞 写回答 收藏 复制链接分享 删除 再等等 结题 再想想 5条回答私信 访问主页
I ve got a 3.0.0 podspec ready to send upstream. As soon as I figure out how to do that, the upstream pod should be good to go.
点赞 评论 复制链接分享私信 访问主页
Doesn t make sense to me, but I m very unfamiliar with CocoaPods. The Podspec includes QuartzCore, so shouldn t be getting that error.
点赞 评论 复制链接分享私信 访问主页
i have tried adding a pull request to cocoapods, but the build failed with this error.https://travis-ci.org/CocoaPods/Specs/builds/13924858Can you check?
点赞 评论 复制链接分享私信 访问主页
Thank you for your reply. That fixed the issue.
In another note, It seems like I was using 2.0.0 version of MGBoxKit which doesn t have rightWidth and leftWidth in MGLine. I was using MGBox2 on cocoapods. Tried searching MGBoxKit in https://github.com/CocoaPods/Specs , but it seems like its not updated over there in the master repo, but pod spec in this repo says MGBoxKit.
点赞 评论 复制链接分享私信 访问主页
For this I d use leftWidth and rightWidth.
Set the leftItems to be your image and the rightItems to be the multiline text, then set the rightWidth to be the full width you want the text to fill to. Then also set rightItemsAlignment to left, so that the text left aligns.
That should get the results you want. Let me know how you get on.
点赞 评论 复制链接分享 提交 再想想 采纳 为你推荐 如何在Go中编写多行字符串? stringmultiline 9个回答golang:从smtp.SendMail读取多行错误响应 it技术互联网问答IT行业问题计算机技术编程语言问答 2个回答在同一行上打印多行字符串 multilineprinting 2个回答根据文本大小调整图像大小 imagephpgd 2个回答php - 在多行上转换单行字符串,然后插入图像 imagetextphpgdmultiline 2个回答将变量替换为多行shell变量 variablesmultilineshellphpsql 2个回答HTML中的MultiLine表单? htmlmultilineformsphp 3个回答使用Jqplot和ajax的MultiLine Graphics phpjqplotjquery 1个回答PHP正则表达式多行字符串的一部分 domregexmultilinephp 1个回答在PHP代码中嵌入多行警报框 javascriptmultilinephp 1个回答PHP和Doxygen具有多个属性声明 propertiesvariable-declarationmultilinephpdoxygen 1个回答PCRE_MULTILINE“m”修饰符 regexnewlinephppcre 1个回答用于php脚本的html中的MultiLine文本框 htmlmultilinetextboxphp 1个回答在 JavaScript 中创建多行字符串 heredocstringjavascriptmultiline 0个回答如何在 Perl 中输入多行注释? [重复] commentsperlmultiline 0个回答中的多行文本 uitextviewiosmultilineline-breaksuilabel 25个回答MFC EDIT控件ON_EN_CHANGE消息 mfc 3个回答Unexpected top-level property comma-dangle .怎么解决 airbnbplugins 1个回答如何实现删除.CS文件的行号 5个回答easyui-textbox设成不可编辑,内容不换行了,怎么解决? 2个回答 点击登录 提问题 欢迎建议意见 . 如何写高质量提问和回答? 采纳榜7天 被采纳次数本文链接: http://mgline.immuno-online.com/view-692796.html