UIAlertControllerのカスタマイズについて調べていたところ、 https://stackoverflow.com/questions/32790207/uialertcontroller-add-custom-views-to-actionsheet
このページを見つけ、このページ内のコードを見てみると
swift
1let alertController = UIAlertController(title: "\n\n\n\n\n\n", message: nil, preferredStyle: UIAlertControllerStyle.actionSheet) 2 3 let margin:CGFloat = 10.0 4 let rect = CGRect(x: margin, y: margin, width: alertController.view.bounds.size.width - margin * 4.0, height: 120) 5 let customView = UIView(frame: rect) 6 7 customView.backgroundColor = .green 8 alertController.view.addSubview(customView) 9
の部分が気になりました。
UIAlertControllerのtitle部分に改行をいくつも配置することで空いたスペースにUIViewを配置しているようですがこの機能を実装したiOSアプリはAppleの審査を通過するのでしょうか?
あなたの回答
tips
プレビュー