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.

Use CGPoint in SWIFT 3 to get pixel color from the image

I tried this PixelExtractor class in Swift 3 and got an error;
Cannot use the parameter list of type'(UnsafeMutableRawPointer?)’ to call the initial value setting of type’UnsafePointer’ Item

October 10, 2021By Simo Swift CGPoint, color, image, Number, pixel, SWIFT, UsedLeave a Comment

SWIFT – Custom protocol commissioned in the story board in Xcode 6.1

I just upgraded my mac to 10.10 and Xcode to 6.1,

I found a strange thing about storyboards, My situation is using a swift project, and I can no longer connect to the custom protocol delegati

October 10, 2021By Simo Swift 6.1, Agreement, Board, Central, connection, customized, Entrust, Medium, story, SWIFT, Unable, XcodeLeave a Comment

SWIFT – Check if it is zero, forcibly open the options for security

I have a network method that returns a completion closure and takes Error as a parameter.

I usually avoid forced unpacking, but in this In this case, I use a guard statement to check if the e

October 10, 2021By Simo Swift check, forced, open, option, safe, SWIFT, whether, whether it is zeroLeave a Comment

Use Date Int Swift to get the last day of the year?

I want to get the Lass day of the year, I need to change over time, so if I use this feature in 2018, I will get December 31, 2018 The last day, but if I use this function now it should give me Dec

October 10, 2021By Simo Swift 1 Years, Date, Get, int, middle, One Day, SWIFT, Using, YearLeave a Comment

SWIFT – Increases the simpler method of adding data points in Firebase?

I have trouble adding a piece of data to Firebase.

Firebase {
clickedCounter: 0< br />} This is my code:

@IBAction func plus(sender: UIButton) {
FIRDatabase.database() .reference().ch

October 10, 2021By Simo Swift among addendum, base, Firebase, method, simple, SWIFTLeave a Comment

SWIFT – How to use registerDefaults ()

I searched everywhere and couldn’t find an explanation of how to use registerDefaults(). Every post asking how to set default values ​​was answered by “use registerDefaults()”, one I encountered Th

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

SWIFT Advanced Mode Matching if Case

let age = 22
let sex = “girl”

if (sex == “girl” && age >= 18 && age <= 25){ print("girl") } else { print("Go you") }

A new syntax has been added for us in swift2: if case

if c

October 10, 2021By Simo SwiftLeave a Comment

SWIFT ARKIT

Reference

https://www.jianshu.com/p/348678918783

Privacy permission

https://www.cnblogs.com/shisishao/p/5872178.html

import UIKit
import ARKit

struct Masks: OptionSet {

October 10, 2021By Simo Swift arkit, first probe, SWIFTLeave a Comment

Array-Exchange array element display error: Also accessed, but modifications require exclusive access

I want to swap my array elements:

swap(&(self.profileImages[0]), &( self.profileImages[2])) But I get this error:

Simultaneous accesses to 0x102944a80, but modification requires exclusi

October 10, 2021By Simo Swift Access, array, display, element, error, exchange, exclusive, modification, need, SimultaneousLeave a Comment

SWIFT 4.2 imagePickerController problem

Trying to pass the chat client from swift 4 to swift 4.2 and using the selector I found trouble.

UIImagePickerControllerEditedImage //Unable to use index type as “UIImagePickerController.Info

October 10, 2021By Simo Swift 4.2, ImagePickerController, problem, SWIFTLeave a Comment

Posts navigation

Page 1 … Page 7 Page 8 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