This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@State var showModal = false | |
var body: some View { | |
Button(action: { | |
self.showModal.toggle() | |
}) { | |
Text("次のViewへ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import GoogleMobileAds | |
class ViewController: UIViewController, GADBannerViewDelegate { | |
var bannerView: GADBannerView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreData | |
import Firebase | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, UITextViewDelegate { | |
@IBOutlet weak var memoTextView: ToucheEventTextView! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Firebase | |
import SDWebImage | |
class accountViewController: UIViewController, UIImagePickerControllerDelegate,UINavigationControllerDelegate { | |
let firebaseAuth = Auth.auth() | |
let imagePick = UIImagePickerController() | |
@IBOutlet weak var profImage: UIImageView! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreData | |
import Firebase | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
override init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function slack() { | |
let xmlhttp = new XMLHttpRequest(); | |
let webhook_url = 'https://hooks.slack.com/services/******/******'; | |
let message = '{"username": "受付" ,"text":"受付でボタンが押されました", "icon_emoji": ":office:"}'; | |
xmlhttp.open('POST', webhook_url, false); | |
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); | |
xmlhttp.send(message); | |
location.href='reception2.html'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import MessageKit | |
class ViewController: MessagesViewController { | |
var messageList: [MockMessage] = [] | |
let dateFormatter:DateFormatter = DateFormatter() //日時のフォーマットを管理するもの | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Photos | |
import DKImagePickerController // 忘れないように | |
/* classにUIImagePickerControllerを書き加える | |
例: class ViewController: UIViewController, UIImagePickerController { | |
*/ | |
@IBOutlet weak var imageView: UIImageView! | |