| 버전 | 1.1 |
|---|---|
| 발행자 | Vassili Kaplan |
| 출시일 | 2020. 9. 9. |
| 추가 된 날짜 | 2020. 9. 9. |
| OS 요구 사항 | iOS |
| 요구 사항 | Requires iOS 10.3 or later. Compatible with iPhone, iPad, and iPod touch. |
| 총 다운로드 | 0 |
| 가격 | Free |
기술
이제 기본 모바일 개발에 CSCS(C#의 사용자 지정 스크립팅)를 사용할 수 있습니다.
이 앱에는 CSCS를 가지고 놀 수 있는 CSCS 인터프리터가 포함되어 있습니다. 미리 설정된 몇 가지 예도 있습니다.
하나의 탭인 "만들기"에서 CSCS 스크립팅 코드를 만든 다음 다른 탭인 "실행"에서 결과를 볼 수 있습니다.
모바일 개발에 CSCS를 사용하는 방법은 다음에서 설명합니다.
- https://msdn.microsoft.com/en-us/magazine/mt829272
- http://www.codemag.com/article/1711081
- https://www.smashingmagazine.com/2020/01/cscs-scripting-language-cross-platform-development/
CSCS를 설명하는 Syncfusion 전자책:
- https://www.syncfusion.com/resources/techportal/details/ebooks/implementing-a-custom-language
모바일 개발에 사용하는 방법에 대한 또 다른 Syncfusion 전자책:
https://www.syncfusion.com/ebooks/writing_native_mobile_apps_in_a_functional_language_succinctly
언어 설명이 있는 CSCS 저장소는 다음 위치에 있습니다.
https://github.com/vassilych/cscs
모바일 저장소용 CSCS는 다음 위치에 있습니다.
https://github.com/vassilych/mobile
이 앱 자체는 CSCS로 제작되었습니다. 전체 CSCS 코드는 다음과 같습니다.
자동 스케일();
SetBackgroundColor("청록색");
AddOrSelectTab("생성", "test.png", "test2.png");
__locComboFiles=GetLocation("ROOT", "CENTER", "ROOT", "TOP", -100, 40);
AddCombobox(__locComboFiles, "__comboFiles", "center:white:clear", 350, 60);
__optionsComboFiles={"샌드박스", "Hello, World!", "광고", "바쁨 표시기", "단위 테스트"};
AddWidgetData(__comboFiles, __optionsComboFiles, "", "center");
SetFontSize(__comboFiles, 13);
SetValue(__comboFiles, "text2", "완료");
SetValue(__comboFiles, "정렬", "중앙");
AddAction(__comboFiles, "comboFilesChanged");
__locRemoveKeyboard=GetLocation(__comboFiles, "오른쪽", __comboFiles, "중앙", 10);
AddButton(__locRemoveKeyboard, "__buttonKeyboard", "키보드", 150, 60);
SetFontSize(__버튼키보드, 12);
AddAction(__buttonKeyboard, "hideKeyboard");
__locScriptView=GetLocation("ROOT", "CENTER", __comboFiles, "BOTTOM", 0, 10);
AddTextEditView(__locScriptView, "__textView", "", 600, 900);
SetFontSize(__textView, 14);
AddOrSelectTab("실행", "learn.png", "run_icon.png");
기능 hideKeyboard(보낸 사람, 인수) {
ShowHideKeyboard(__textView, false);//!IsKeyboard(__textView));
기능 콤보 파일 변경(발신자, 인수) {
행=GetValue(발신인);
WriteConsole("콤보 행=", 행);
텍스트="";
if (행 == 1) {
텍스트=ReadFileAsString("sfhello.cscs");
} elif (행 == 2) {
텍스트=ReadFileAsString("ads.cscs");
} elif (행 == 3) {
텍스트=ReadFileAsString("busyIndicators.cscs");
} elif (행 == 4) {
텍스트=ReadFileAsString("unitTests.cscs");
SetText(__textView, 텍스트);
기능 tabSelected(발신자, 인수) {
tabId=정수(인수);
if (tabId != 1) {
반품;
스크립트=GetText(__textView);
RemoveTabViews(1);
노력하다 {
실행(스크립트);
} 잡기(예외) {
AlertDialog("CSCS", exc);
쓰기 콘솔(예시);
OnTabSelected("탭선택");
선택탭(0);