Development record of developer who study hard everyday.

레이블이 ios개발인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ios개발인 게시물을 표시합니다. 모든 게시물 표시
, , ,

How to use UINavigationController programmatically

 How to use UINavigationController programmatically


ios development blog

1. Make ios project no storyboard setting.

Here is my link to set no storyboard.

https://antwhale94.blogspot.com/2023/07/howtosetnostoryboard.html


2. Set UINavigationController to start window's rootViewController

import UIKit


class SceneDelegate: UIResponder, UIWindowSceneDelegate {


    var window: UIWindow?



    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {

        // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.

        // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.

        // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).

        

        guard let windowScene = (scene as? UIWindowScene) else { return }

        

        window = UIWindow(windowScene: windowScene)

        

        let rootVC = ViewController()

        let navVC = UINavigationController(rootViewController: rootVC)

        

        window?.rootViewController = navVC

        window?.makeKeyAndVisible()

    }



}



Share:
Read More
, , ,

How to issue APN certificate key(.p8) and upload

 How to issue APN certificate key(.p8) and upload

ios development blog

1. Go to Apple Developer account site.

https://developer.apple.com/account


2. Click "Program Resource" > "Certificates, Identifiers & Profiles" > Key

Click "Key" menu


3. Issue certificate key after entering "Keys" menu in left side bar.

Issue certificate key

4. Enter "Key Name" and activate Apple Push notifications service(APNs)

Activate APNs


5. Check "Key ID" and Download key file.

👊 You can download certificate key only once, so you should save key file carefully.

Check your "Key ID"

6. Check your "Team ID" in membership page

Check your "Team ID"

Team ID in membership page


7. Upload APNs key file.

Upload APNs key file

Enter "Key ID" and "Team ID"
Upload APNs key file with key ID and team ID.
















Share:
Read More