Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: Swift

Swift, a new development language released by Apple at WWDC (Apple Developer Conference) in 2014, can run on Mac OS and iOS platforms together with Objective-C* to build applications based on the Apple platform. Swift is an easy-to-learn and easy-to-use programming language, and it is also the first system programming language with the same expressiveness and fun as a scripting language. Swift is designed with safety as the starting point to avoid various common programming error categories.

SWIFT – Type does not match the protocol ‘avcapturefileoutputRecordingDelegate’

I’m trying to use AVCaptureMovieFileOutput.startRecordingToOutputFileURL to record audio to a file, and the function’s syntax requires the input of a variable of type “AVCaptureFileOutputRecordingD

October 10, 2021By Simo Swift Agreement, avcapturefileoutputrecordingdeelegate, not compliant, SWIFT, typeLeave a Comment

There is no type initializer in Swift—-One answer is to use static, it is the same as class final.

“Unlike stored instance properties, you must always give stored type properties a default value. This is because the type itself does not have an initializer that can assign a value to a stored typ

October 10, 2021By Simo Swift answer, class, final, initializer, static, SWIFT, type, useLeave a Comment

SWIFT – Xcglogger 3.0 Write logfile to file system (iOS 9)

I want to use XCGLogger 3.0 to log in an iOS9 application written in Swift 2. In AppDelegate, I define

let log = XCGLogger.defaultInstance() And in the application: didFinishLaunchingWithOpti

October 10, 2021By Simo Swift 3.0, file, IOS, Logfile, SWIFT, system, will, write, XcgloggerLeave a Comment

Use Cell.ImageView.Image different size images. Quick

Can all images be set to the same size? I tried using cell.imageView? .frame.size.width = something. However, it does not work. Any suggestions? Thank you.

func tableView(tableView: UITableVi

October 10, 2021By Simo Swift cell, Cell.ImageView.Image, Different, image, ImageView, Quick, Size, UsingLeave a Comment

How to use SWIFT to implement a Marquee tab in iOS

How to implement MarqueeLabel in iOS. I found an example in Objective-C, but I use Swift. < /div> Used to create a marquee in the swift Add Below Class in the project
https://github.com/cbpowell

October 10, 2021By Simo Swift how to use, IOS, Moist, SWIFTLeave a Comment

How to use Getopt with command line parameters in SWIFT 3?

I tried to use getopt with command line parameters in Swift 3. I started with Michele Dall’Agata’s nice stackoverflow contribution:

let pattern = “abc:”
var buffer = Array( pattern.utf8 ).map

October 10, 2021By Simo Swift Command Line, getopt, how to use, parameterLeave a Comment

SWIFT – How do I get the parameter value of enumeration under IF?

See answer in English> Get associated value from enumeration without switch/case 2
How to write this

switch parameter {
case .CaseA(let valueA):
print(valueA)
} As an If condition statement?

October 10, 2021By Simo Swift enumerated, Get, How, parameters, SWIFT, under conditions, valueLeave a Comment

Dictionary print keys and the value in SWIFT 4

See the answer in English> From which direction swift starts to read dictionaries? 1 one
Hello, I tried the print dictionary project in Xcode9. Like this:

var items = [“Bear”:”0″, “Glass”:”1″

October 10, 2021By Simo Swift Dictionary, key, Medium, print, SWIFT, valueLeave a Comment

An error occurred while trying to save an image in NSUSERDEFAULTS

When I tried to save an image in NSUserDefaults, the application crashed due to an error.

Why? Is it possible to save images using NSUserDefaults? If not, then how to save the image?

Pi

October 10, 2021By Simo Swift error, NSUSERDEFAULTS, SWIFT, useLeave a Comment

The dome of the UIView in SWIFT

I am trying to use the following code to round the top corners

func roundCorners(corners:UIRectCorner, radius: CGFloat) {
let path = UIBezierPath(roundedRect: self.bounds,
byRoundingCorners

October 10, 2021By Simo Swift among uiView, corner, dome, SWIFTLeave a Comment

Posts navigation

Page 1 … Page 4 Page 5 Page 6 … Page 9
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress