브래드의 메모장

  • 홈
  • 태그
  • 방명록

2024/06/20 1

Objective-C) 클래스 객체함수 호출하기

Objective-C에서 다른 객체에서 함수를 실행시키는 방법은 swift와 미묘한 차이점이 있습니다.간단하게 정리해보았습니다.ViewController를 생성해봅시다.이름은 MyViewController 지정했습니다.MyViewController.m파일과 MyViewController.h파일이 생깁니다.먼저 m파일에 함수를 작성해 봅시다.- (void)testAction { NSLog(@"testAction");}그 다음 h파일로 가서 해당 함수를 등록해 봅시다.@interface MyViewController : UIViewController-(void)testAction;@end이제 메인 ViewController로 가서 동작시켜봅시다.저는 viewDidLoad에 동작시켜볼게요.코드는 간단합니..

iOS/Objective-C 2024.06.20
이전
1
다음
더보기
프로필사진

브래드의 메모장

  • 분류 전체보기
    • 생각정리
    • 경험
      • 내일채움공제
      • 야곰아카데미
    • iOS
      • WWDC
      • iOS
      • Objective-C
      • Swift
      • SwiftUI
      • HTTP
      • 트러블 슈팅
      • TestFlight
    • Algorithm
      • 프로그래머스
    • Tool
      • OrCAD
      • P-touchEditor
      • Git
    • Another
      • Azure IoT
      • mqtt
      • PDF
      • 라즈베리파이
      • 회로설계

Tag

ios, localized, 생체인증 타입 확인, 라즈베리파이, UserInterfaceState.xcuserstate, TableView, multpart/form-data, pod install 에러, uiview 맨 앞으로, 커리어스타터, Objective-C, universal link, SWiFT, iOS부트캠프, MQTT, GIT, presentviewcontroller, largeTitle, beyond a symbolic link, @escaping closure,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2024/06   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바