전체 글110 [Swift] 스위프트 - 기본 조건문, 함수 뭐 다 똑같다, 특이점은 조건에 괄호가 없다 정도 .. 조건문 ( if, switch )let score = 85if score >= 90 { print("A")} else if score >= 80 { print("B")} else { print("C")}let grade = "B"switch grade {case "A": print("Excellent")case "B": print("Good")case "C": print("Average")default: print("Fail")}반복분 ( for, while ) for i in 1...5 { print(i)}var count = 0while count 함수함수도 코틀린이랑 비슷.. 매개변수로 받은 변수 문자.. 2024. 7. 13. [Swift] - var, let 상수와 변수 변수 -> var 상수 -> let var variable = 42 // 변수 선언let constant = 3.14 // 상수 선언 스위프트의 변수 선언 법 var variableName: Type = initialValue여기서 variableName은 변수의 이름, Type은 변수의 데이터 타입, initialValue는 초기 값입니다. Swift는 타입 추론을 지원하므로, 데이터 타입을 생략할 수 있습니다. 예를 들어var age = 25 // 정수형 변수 선언 및 초기화var name = "John" // 문자열 변수 선언 및 초기화var height: Double = 5.9 // 실수형 변수 선언 및 초기화 스위프트의 상수 선언 법 let constantName: Type = initial.. 2024. 7. 13. [Swfit] 스위프트 - 타입 자바와 비교해서 설명하겠습니다.int, short, long -> Int* 양의 정수 -> UIntfloat -> Floatdoble -> Doubleboolean -> Boolchar -> Characterstring -> StirngArray -> ArrayHashMap -> DictinaryHashSet -> SetTuple 사용 가능Optional 사용 가능 2024. 7. 13. [Flutter] 플러터 - 네트워크 상태 감지 connectivity_plus https://pub.dev/packages/connectivity_plus/versions/3.0.6 connectivity_plus 3.0.6 | Flutter packageFlutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.pub.dev앱 실행시 네트워크 상태 확인하기 1. 네트워크 상태 감지를 할 메소드를 생성import 'package:connectivity/connectivity.dart';import 'package:dio/dio.dart';import '../common/data/index/index.dart';final appService.. 2024. 7. 8. [Flutter] 플러터 - IOS - Parse Issue (Xcode): Module 'app_links' not found https://stackoverflow.com/questions/76704862/generatedpluginregistrant-module-app-links-not-found GeneratedPluginRegistrant module "app_links" not foundWhen I try to build my flutter app for my iPhone through xcode I get this error enter image description here I've changed the iOS target to match in cocopods and In xcode but did not help, I've alsostackoverflow.comapp_links 란 종속성을 찾을 수 없다는 군...... 2024. 6. 29. [Flutter] 플러터 - AOS(안드로이드) 네이티브 연동 SMS 자동완성 SmsBroadcastReceiver.ktpackage com.test.smsimport android.content.BroadcastReceiverimport android.content.Contextimport android.content.Intentimport android.os.Buildimport android.util.Logimport com.google.android.gms.auth.api.phone.SmsRetrieverimport com.google.android.gms.common.api.CommonStatusCodesimport com.google.android.gms.common.api.Statusimport io.flutter.plugin.common.BinaryMessengeri.. 2024. 6. 12. 이전 1 2 3 4 5 6 ··· 19 다음