まだどこにもないアプリを作る

アプリ開発でつまづいたところなどを中心に記事にして行きます。

2020-02-01から1ヶ月間の記事一覧

swift cell内にあるUIをセルの真ん中に配置する方法

//セルのど真ん中に配置 cell.checkBoxOutlet.center = cell.contentView.center //x方向だけ真ん中に配置 cell.checkBoxOutlet.center.x = cell.contentView.center.x //y方向だけ真ん中に配置 cell.checkBoxOutlet.center.y = cell.contentView.center.y c…

swift UIButtonの文字サイズやフォントをUILabelとともに一括変更する方法(storyboard)

Appdelegate.swiftのdidFinishLaunchingOptionsに以下のコードを書きます func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for custom…

realmswift 大文字でも小文字でもヒットさせる検索方法

items = realm?.objects(Todo.self).filter("name contains '\(searchText.lowercased())' OR name contains '\(searchText.uppercased())'") itemsはList型でrealmはRealmのインスタンスTodoはモデルのObject名nameはTodoのString型の要素です。 contains …

禁じられしバナナ[シュールワード生成機] リリースしました。

アプリ禁じられしバナナがリリースです。 単語をランダムで組み合わせて楽しむアプリです。 シュールな単語を色々作れますよ。 シュールワード生成器。 iPhoneアプリ[禁じられしバナナ]⤵︎ https://apps.apple.com/jp/app/%E7%A6%81%E3%81%98%E3%82%89%E3%8…