菜鸟教程小白 发表于 2022-12-12 08:52:49

iphone - 具有键盘按钮样式的 UIButton


                                            <p><p>我正在创建一个仅用于数字输入的自定义键盘。我希望键盘看起来尽可能像 iOS 键盘,但我不太确定默认键盘按钮图形是否是我们可以使用的东西,或者苹果是否将它们锁定。 </p>

<p>按钮能够拥有这样的风格而无需使用我自己构建的图像吗?或者是通过构建看起来相似的图像来反射(reflect)该设计的唯一方法?</p>

<p>谢谢</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您可以定义类似于 Apple 的自定义键盘。看看这里的项目:<a href="https://github.com/kulpreetchilana/Custom-iOS-Keyboards" rel="noreferrer noopener nofollow">https://github.com/kulpreetchilana/Custom-iOS-Keyboards</a> </p>

<p>它包含模拟 iOS 键盘外观的图形。它也是 Cocoapods 项目。</p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - 具有键盘按钮样式的 UIButton,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/14986498/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/14986498/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - 具有键盘按钮样式的 UIButton