การ์ดฮีโร่ WBC ไต้หวัน
Mar 16 2023
WBC ไต้หวันเพิ่งเสร็จสิ้นการแข่งขันทั้งหมดเมื่อเร็ว ๆ นี้ แม้ว่าพวกเขาจะไม่ผ่านเข้ารอบ แต่ผู้เล่นแต่ละคนก็นำเนื้อหาเกมที่มีความตึงเครียดสูงมาสู่ผู้ชมชาวไต้หวัน ในการทำการ์ดใบนี้เพื่อยกย่องฮีโร่เหล่านี้ ก่อนอื่นให้ตั้งค่ารูปภาพ
WBC ไต้หวันเพิ่งสิ้นสุดการแข่งขันทั้งหมดเมื่อเร็ว ๆ นี้ แม้ว่าพวกเขาจะไม่ผ่านเข้ารอบ แต่ผู้เล่นแต่ละคนก็นำเนื้อหาเกมที่มีความตึงเครียดสูงมาสู่ผู้ชมชาวไต้หวัน การ์ดใบนี้จัดทำขึ้นเพื่อยกย่องฮีโร่เหล่านี้
ตั้งค่ารูปภาพก่อน
import UIKit
var image = UIImage(named: "張育成.jpg")
let imageView = UIImageView(image: image)
imageView.layer.borderWidth = 5
imageView.layer.borderColor = CGColor(red: 1, green: 0, blue: 0, alpha: 1)
imageView.layer.cornerRadius = 50
imageView.clipsToBounds = true
let message = UILabel(frame: CGRect(x: 50, y: 70, width: 300, height: 80))
message.text = "台灣英雄"
message.textColor = UIColor(red: 160/255, green: 160/255, blue: 0, alpha: 1)
message.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(message)
let messageName = UILabel(frame: CGRect(x: 570, y: 70, width: 300, height: 80))
messageName.text = "張育成"
messageName.textColor = UIColor(red: 160/255, green: 160/255, blue: 0, alpha: 1)
messageName.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(messageName)
for i in 1...10 {
let ball = UILabel(frame: CGRect(x: 70 * i, y: 0, width: 80 , height: 80))
ball.text = "⚾️"
ball.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(ball)
}
for i in 1...10 {
let ball = UILabel(frame: CGRect(x: 70 * i, y: 460, width: 80 , height: 80))
ball.text = "⚾️"
ball.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(ball)
}
for i in 1...5 {
let ball = UILabel(frame: CGRect(x: 3, y: 100 * i, width: 80 , height: 80))
ball.text = ""
ball.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(ball)
}
for i in 1...5 {
let ball = UILabel(frame: CGRect(x: 720, y: 100 * i, width: 80 , height: 80))
ball.text = ""
ball.font = UIFont.systemFont(ofSize: 40)
imageView.addSubview(ball)
}
imageView





































![รายการที่เชื่อมโยงคืออะไร? [ส่วนที่ 1]](https://post.nghiatu.com/assets/images/m/max/724/1*Xokk6XOjWyIGCBujkJsCzQ.jpeg)