Questions for Ios 12

Total Page:16

File Type:pdf, Size:1020Kb

Questions for Ios 12 www.YoYoBrain.com - Accelerators for Memory and Learning Questions for iOS 12 Category: Default - (546 questions) iOS 12: 3 kinds of object types classes, stucts&nbsp;and enums iOS 12: 2 ways to declare a variable let one = 1 var two = 2 iOS 12: how to declare a constant let one = 1 iOS 12: how to suppress a function preceded the internal&nbsp;name with an parameter's external name underscore and a space func&nbsp;myFunc( _ x:Int) { } iOS 12: how to use x for internal parameter put external name followed by space before name versus times as external name for parameter definition function fun myFunc( times x:Int) { } iOS 12: how to declare a parameter as add three periods after declaration variadic (can have as many values of this func&nbsp;sayStrings(_ arrayofStrings:String parameter type as desired) ... ) {} iOS 12: how to have a parameter that declare as inout&nbsp;in function declaration modifies the original value of an argument fun removeCharacter( s:inout String) passed in then call function parameter with & in front removeCharacter(s:&x) iOS 12: object used to store user data UserDefaults.standard permanently iOS 12: event for when user touches outside touchesBegan of text field iOS 12: command to remove keyboard in self.view.endEditing(true) touchesBegan event function iOS 12: Event for text field when user hits textFieldShouldReturn return on keyboard iOS 12: how to remove keyboard in textField.resignFirstResponder() textFieldShouldReturn event iOS 12: how to get a map view to a particular map.setRegion( ) area iOS 12: type needed for map.setRegion( ) MKCoordinateRegion iOS 12: 2 types needed for a CLLocationCoordinate2D MKCoordinateRegion MKCoordinateSpan iOS 12: type for map coordinate points CLLocationDegrees iOS 12: type used for map annotations MKPointAnnotation iOS 12: how to add an annotation to MKMap map.addAnnotation(MKPointAnnotation) map iOS 12: type used to recognize a long press UILongPressGestureRecognizer iOS 12: how to add a gesture recognizer to map.addGestureRecognizer() MKMap map iOS 12: what needs to be imported to get CoreLocation user's location iOS 12: what is needed to manage user var locationManager = CLLocationManager() location iOS 12: how to request permission to get locationManager.requestWhenInUseAuthoriz user location with locationManager ation iOS 12: what has to be added to CLLocationManagerDelegate ViewController definition to use CLLocationManager iOS 12: what function is called by locationManager CLLocationManager when user location is received iOS 12: how to look up address from CLGeocoder().reverseGeocodeLocation() coordinates iOS 12: what function gets called before func&nbsp;prepare(for segue: ViewController segue UIStoryboardSeque, sender) iOS 12: what gets called when table row is func&nbsp;tableView(_ tableView: selected UITableView, didSelectRowAt: indexPath: IndexPath) iOS 12: how to make a segue from code performSeque() iOS 12: how to get a table view to reload table.reloadData() information iOS 12: what class must be imported to play AVFoundation sound iOS 12: what do you create to manage var player = AVAudioPlayer() playing sounds iOS 12: how to get the audio resource path var audioPath&nbsp;= for bach.mp3 Bundle.main.path(forResources: "bach", ofType: "mp3") iOS 12: how to get a handle to respond to let swipeRespond = swipe gestures UISwipeGestureRecognizer() iOS 12: how to add gesture recognizer to self.view.addGestureRecognizer() current view iOS 12: function to override in order to catch func&nbsp;motionEnded() shaking after finished iOS 12: create a random number between 0 let randomNumber = arc4random_uniform() and x iOS 12: library to import to interact with CoreData storing structured data iOS 12: how to grab a reference to let appDelegate = AppDelegate UIApplication.shared.delegate as! AppDelegate iOS 12: how to grab reference to CoreData let context = in AppDelegate appDelegate.persistentContainer.viewConte xt iOS 12: how to create a new CoreData let newUser = object NSEntityDescription.insertNewObject() iOS 12: how to create a fetch request for let request = CoreData table Users NSFetchRequest<NSFetchRequestResult>( entityName: "Users") iOS 12: how to create a select restriction on request.predicate = NSPredicate(format: NSFetchRequest "username = %@", "SuzyQ") iOS 12: how to delete a result from a context.delete(result) NSFetchRequestResult context.save() iOS 12: how to run code on main thread DispatchQueue.main.async { when in a callback } iOS 12: how to search for file storage var docPath = directory path NSSearchPathForDirectoriesInDomains(.doc umentDirectory,&nbsp; ) iOS 12: how to create an image from file UIImage(contentsOfFile: filePath) path iOS 12: how to create a URL let url&nbsp;= URL(string: "http://example.com") iOS 12: syntax to grab a URL from web with let task = URLSession.shared.dataTask(with: URLRequest request request) { data, response, error in //code }&nbsp; task.resume() iOS 12: how to build a URL request with URL let request = NSMutableURLRequest(url: url) url iOS 12: object used to show alerts UIAlertController iOS 12: how to add actions to a alertController.addAction(UIAlertAction() ) UIAlertController iOS 12: object used to show activity spinner UIActivityIndicatorView iOS 12: how to show UIActivityIndicatorView view.addSubview(activityIndicator) activityIndicator iOS 12: how to get UIActivityIndicatorView activityIndicator.startAnimating() activityView to start spinning iOS 12: how to stop user from interacting UIApplication.shared.beginIgnoringInteractio with app nEvents() iOS 12: how to resume user being able to UIApplication.shared.endIgnoringInteraction interact with application Events() iOS 12: what class extensions to UINavigationControllerDelegate ViewController do you add to allow picking UIImagePickerControllerDelegate photos from camera roll iOS 12: what object is used to manage UIImagePickerController picking images from camera roll iOS 12: how to show self.present(imagePickerController) UIImagePickerController imagePickerController in ViewController iOS 12: what function returns after user picks func&nbsp;imagePickerController(UIImagePi image using ImagePickerController ckerController, didFinishPickingMediaWithInfo:) iOS 12: 3 ways to show a function doesn't func&nbsp;say(_ s:String) -> void { } return a value func say(_ s:String) -> () {} func say(_ s:String) { } iOS 12: when creating a parameter that the function's signature is its type accepts a function what is type iOS 12: how to create an alias for a typealias function's signature to use in the parameter typealias&nbsp;VoidVoidFunction = () -> () type declaration iOS 12: a standard control that can initiate UIRefreshControl the refreshing of a scroll view's content iOS 12: Controls use the _____ mechanism target-action to report interesting events happening to your code iOS 12: when adding an action method to specify both the action method and an object UIControl, you _______ that defines the method to the addTarget(_:action:for) method iOS 12: to add a subview to another call addSubview method on the superview controller iOS 12: ______ framework provides the UIKit window and view architecture for implementing your interface iOS 12: the _____ object runs your app's UIApplication main event loop and manages your app's overall lifecycle iOS 12: UIKit apps are always in one of five states: ___ iOS 12: when your app transitions from one UIApplicationDelegate state to another, UIKit notifies your app delegate object, an object that conforms to the ____ protocol iOS 12: UIApplicationDelegate method to application(_:willFinishLaunchingWithOption initialize your app's data structures and s:) perform one-time setup tasks iOS 12: UIApplicationDelegate method to application(_:didFinishLaunchingWithOption validate your content, update your app's s:) default user interface and start any tasks iOS 12: how to determine why your app was System supplies the reason for the launch in launched the dictionary object passed to application(_:willFinishLaunchingWithOption s:) and application(_:didFinishLaunchingWithOption s:) methods iOS 12: when your app is launched, UIKit applicationDidBecomeActive(_:) calls your app delegate's ______ method to let you know your app is now active iOS 12: if your app was already running in applicationWillEnterForeground(_:) the background, UIKit calls the _____ method before calling the applicationDidBecomeActive() iOS 12: notification that a user changed your didChangeNotification app's preferences iOS 12: notification that the current language currentLocaleDidChangeNotification or locale settings changed iOS 12: notification when screen mode of a modeDidChangeNotification display changes iOS 12: how are notifications handled when they are queued and delivered when app an app is suspended starts running again iOS 12: when a foreground app moves to the applicationWillResignActive(_:) background, UIKit first calls the _____ method to deactivate the app iOS 12: For a foreground app that is moving applicationDidEnterBackground(_:) to the background, UIKit follows deactivation with a call to ____ method of your app delegate iOS 12: _______ lets your app run Background App Refresh periodically in the background so that it can update its content iOS 12: 3 things to enable Background App 1. Add required Background Modes key to Refresh your info plist file 2. Call the setMinimumBackgroundFetchInterval(_:) method of UIApplication at launch time 3. Implement the application(_:performFetchWithCompletionH andler:) method in app delegate iOS 12: perform any
Recommended publications
  • Apple Publications Style Guide December 2009
    Apple Publications Style Guide December 2009 style n. 1. The way in which something is said, done, expressed, or performed: a style of speech and writing. 2. The combination of distinctive features of literary or artistic expression, execution, or performance characterizing a particular person, group, school, or era. 3. Sort; type: a style of furniture. 4. A quality of imagination and individuality expressed in one’s actions and tastes: does things with style. 5a. A com- fortable and elegant mode of existence: living in style. b. A mode of living: the style of the very rich. 6a. The fashion of the moment, especially of dress; vogue. b. A par- ticular fashion: the style of the 1920s. 7. A customary manner of presenting printed material, including usage, punctuation, spelling, typography, and arrangement. 8. A form of address; a title. 9a. An implement used for etching or engraving. b. A slen- der pointed writing instrument used by the ancients on wax tablets. 10. The needle of a phonograph. 11 . The gnomon of a sundial. 12 . Botany The usually slender part of a pistil, situated between the ovary and the stigma. 13 . Zoology A slender, tubular, or bristlelike process: a cartilaginous style. 14 . Medicine A surgical probing instru- ment; a stylet. 15. Obsolete A pen. —tr. v. styled, styl•ing, styles 1. To call or name; designate: George VI styled his brother Duke of Windsor. 2. To make consistent with rules of style: style a manuscript. 3. To give style to: style hair. [Middle English, from Old French, from Latin stylus, stilus, spike, pointed instrument used for writing, style.
    [Show full text]
  • A Breeding Tool for Abstract Animations and Its Applications
    GA2010 – XIII Generative Art Conference – Politecnico di Milano University, Italy Tatsuo Unemi Paper: A Breeding Tool for Abstract Animations and Its Applications Abstract: The recent innovation of graphics processing unit (GPU) improved the calculation performance to be fast enough to realize breeding animations in real time on the personal computer. SBArt4 compiles each expression in genotype into a type of shading language, Core Image kernel language, that directly runs on GPU. Even when it renders each frame of the animation in real time, it achieves enough speed for users to evaluate the product of an abstract animation immediately. The compiled code can be exported to another application that utilizes Core Image framework on MacOS X. Four types of video effect plug-ins for Final Cut Pro and an independent application for slide presentation were examined. It is useful not only to create an abstract animation in arbitrary size and duration but also to make a transition effect by deformation and/or discoloration. Topic: Animation Author: Tatsuo Unemi Soka University, Department of Information Systems Science Japan www.intlab.soka.ac.jp/~u nemi/ References: [1] Tatsuo Unemi, “SBArt4 - Breeding A sample field window of SBArt4 Abstract Animations in Real time”, Proc. of CEC 2010, pp. 4004-4009, Barcelona, Spain, 2010. Contact: Keywords: [email protected] Interactive evolutionary computing, abstract animation, video effects page 451 13th Generative Art Conference GA2010 A Breeding Tool for Abstract Animations and Its Applications Associate Prof. T. Unemi, BEng, MEng, DEng. Department of Information Systems Science, Soka University, Hachioji, Japan www.intlab.soka.ac.jp/~unemi/ e-mail: [email protected] Premise The recent innovation of graphics processing unit (GPU) improved the calculation performance to be fast enough to realise breeding animations in real time on the personal computer.
    [Show full text]
  • Fehlermeldung Final
    Process: Final Cut Pro [4299] Path: /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro Identifier: com.apple.FinalCut Version: 10.2.3 (276640) Build Info: ProEditor-27664000056000000~1 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Final Cut Pro [4299] User ID: 501 Date/Time: 2020-01-27 17:46:39.886 +0100 OS Version: Mac OS X 10.11.3 (15D21) Report Version: 11 Anonymous UUID: 510B5E3F-349A-8009-9C94-374A57349E61 Time Awake Since Boot: 130000 seconds System Integrity Protection: disabled Crashed Thread: 42 BGTask: MEBackgroundLoadManager Dispatch queue: NSOperationQueue 0x7fd2554ca6f0 :: NSOperation 0x7fd22cfe62b0 (QOS: USER_INTERACTIVE) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY VM Regions Near 0: --> __TEXT 00000001011cb000-00000001012aa000 [ 892K] r-x/rwx SM=COW /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro Global Trace Buffer (reverse chronological seconds): 206.661492 CFNetwork 0x00007fff900cd654 NSURLConnection finished with error - code -1004 206.661589 CFNetwork 0x00007fff900dc74f HTTP load failed (error code: -1004 [1:64]) 206.662749 CFNetwork 0x00007fff9000c5d3 TCP Conn 0x7fd252e7bcf0 started 206.899071 CFNetwork 0x00007fff9000ea5b TCP Conn 0x7fd245a61560 SSL Handshake DONE 207.498105 CFNetwork 0x00007fff9000e937 TCP Conn 0x7fd245a61560 starting SSL negotiation 207.498349 CFNetwork 0x00007fff9000d303 TCP Conn 0x7fd245a61560 complete. fd: 94, err: 0 207.498436 CFNetwork 0x00007fff9009bb1d TCP Conn
    [Show full text]
  • Fxfactory Visual Effects Package for Final Cut Studio
    FxFactory Visual effects package for Final Cut Studio Overview • Over 100 GPU-accelerated plug-ins for Final Cut Pro and Motion • Based on FxPlug, Apple's modern plugin architecture for film-quality effects • GPU accelerated via OpenGL, Quartz Composer and Core Image for floating point color accuracy • More effects downloadable at the FxMarket. Try new plug-ins for free and buy only what you use • Zero-coding plug-in development: create your own FxPlug effects for Final Cut FxFactory is a revolutionary visual effects package for Final Cut Studio, offering Studio without writing any over 100 GPU-accelerated plug-ins based on the FxPlug architecture for the code highest performance and seamless integration inside both Final Cut Pro and Requirements Motion. • Final Cut Pro 5.1.2 More Than Meets the Eye • Motion 2.1.2 FxFactory is the also the first expandable effects package for Final Cut Studio, • Mac OS X v10.4.7 sporting a plug-in management system tied to the FxMarket, a unique online • Macintosh computer with repository of visual effects for Final Cut Studio users. PowerPC or Intel processor New plug-ins can be downloaded from the FxMarket and installed on your qualified to run Final Cut system with just one click. Our pay-per-use solution lets you try new effects for Studio free, and purchase only the plug-ins you need for your projects. • Core Image-capable AGP or PCI Express graphics card with Zero-coding Plug-in Development at least 64MB VRAM Unlike other effects packages, FxFactory does not limit you to the effects and parameters developed by us.
    [Show full text]
  • Fxplug SDK Overview
    FxPlug SDK Overview 2006-09-26 Simultaneously published in the United Apple Computer, Inc. States and Canada. © 2005, 2006 Apple Computer, Inc. Even though Apple has reviewed this document, All rights reserved. APPLE MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS No part of this publication may be DOCUMENT, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A reproduced, stored in a retrieval system, or PARTICULAR PURPOSE. AS A RESULT, THIS transmitted, in any form or by any means, DOCUMENT IS PROVIDED “AS IS,” AND mechanical, electronic, photocopying, YOU, THE READER, ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND recording, or otherwise, without prior ACCURACY. written permission of Apple Computer, Inc., IN NO EVENT WILL APPLE BE LIABLE FOR with the following exceptions: Any person DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES is hereby authorized to store documentation RESULTING FROM ANY DEFECT OR on a single computer for personal use only INACCURACY IN THIS DOCUMENT, even if and to print copies of documentation for advised of the possibility of such damages. personal use provided that the THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN documentation contains Apple’s copyright LIEU OF ALL OTHERS, ORAL OR WRITTEN, notice. EXPRESS OR IMPLIED. No Apple dealer, agent, or employee is authorized to make any The Apple logo is a trademark of Apple modification, extension, or addition to this Computer, Inc. warranty. Some states do not allow the exclusion or Use of the “keyboard” Apple logo limitation of implied warranties or liability for (Option-Shift-K) for commercial purposes incidental or consequential damages, so the above limitation or exclusion may not apply to without the prior written consent of Apple you.
    [Show full text]
  • Full Conference Guide
    FULL CONFERENCE GUIDE PRESENTED BY SPONSORED BY Dell Precision rack – a Perfect fit for Your Data center Developed in close collaboration with hardware and software partners, the Dell Precision rack workstation delivers high performance in a flexible 2U chassis — an ideal solution for centralizing critical data and workstation assets in secure data center locations. To help maximize flexibility, the Dell Precision rack workstation is enhanced by a choice of industry-standard slot combinations. Designed for performance, reliability, and scalability in environments where space is at a premium, the Dell Precision rack workstation is ideal for high-performance clusters and rendering farms. For remote, crowded, heat-challenged, and acoustically sensitive environments such as financial trading or factory floors, Dell’s optional remote access solution is the ideal solution for workstation users who need to interact with their system when elsewhere on the network. “With the emerging gPu oPPortunities, Dell Precision shoulD be the Platform of choice for anYone looking to accelerate their cgi WorkfloW.” — keith jeffery, head of Business development, taylor James Dell Precision workstations help meet your application demands for: reliabilitY: • Dell Precision, the world’s most preferred Performance anD scalabilitY: workstation family • Intel®-based processing power options • Compatibility for 90 applications including Intel® Core™2 Extreme and Intel® based on certifications by 35 leading Xeon® processors on select systems Independent Software Vendors
    [Show full text]
  • Ipomme, Le Ma- News : Nouveaux Macbooks ! 4 Gazine, Numéro Iphone En Europe 5 4 - Décembre Final Cut Express 4 2007
    IPOMME LE MAGAZINE Nº4, décembre 2007. Ce magazine est gratuit. NEWS ANALYSE TEST - Nouveaux Comment Ap- - iPod Touch MacBooks ple soutient le - Logic Studio 8 - Intel Penryn libre... Plus de 100 trucs &Page astuces 1 Sommaire Edito : Spécial truc & astuces 3 iPomme, le ma- News : Nouveaux MacBooks ! 4 gazine, numéro iPhone en Europe 5 4 - décembre Final Cut Express 4 2007. Intel Penryn Un cheval de Troie sur Mac 6 Rédaction : Front Row avec Leopard 7 MSN Mac et Adium Theo13 Rédacteur en chef YouTube va s’améliorer [email protected] 10 ans pour l’AppleStore Mises à jours : Mac OS X 10.5.1 8 Takeo Mac OS X 10.4.11 Rédacteur & maquettiste [email protected] Security Update 2007-08 iTunes 7.5 ; QuickTime 7.3 iMat Applications Pro 9 Correcteur [email protected] iPod Touch et iPhone iPod 5G Aspects légaux: iMac Aluminium 10 Hard Drive Update 1.0 © iPomme et Macstyle. Ce magazine gratuit en PDF Pratique : Spécial truc & astuces 11 est rédigé par des bénévo- Analyse : Comment Apple soutient le les. Il ne peut pas être ven- du et distribué par d’autres libre... sites que : Premiers pas : Présentation d’OS X - www.ipomme.info Tests : iPod Touch - www.macstyle.fr - www.actujeunes.fr Logic Studio 8 Resize ‘em all Merci à: Armagetron Toumak pour les astuces, Richard pour ses articles, Dark_Fragor pour le test de l’iPod Touch. Page 2 Edito Spécial truc & astuces Mais ce n’est pas tout ! Ce numéro introduit la nouvelle rubrique “Pre- Leopard est truffé miers pas avec OS X” avec l’aima- de truc et astuces, ble participation de Richard, le de raccourcis cla- webmaster d’OS X Facile vier.
    [Show full text]
  • Final Cut Pro Media Management a Basic Reference
    Final Cut Pro Media Management A Basic Reference Ben Balser, Apple Certified Master Trainer www.FinalCutProX.guru !1 I. FCPX Media Management 4# A. Physical Storage & Libraries 4# 1. Storage 4# 2. Libraries 5# B. Managing Physical Media 6# 1a. Original Media 6# 1b. Optimized Media 6# 1c. Proxy Media 7# 2a. Managed Media 8# 2b. External Media 8# 2c. Migrating Managed Media To External Media 8# 2d. Migrating External To Managed 9# 3a. Motion Templates - External (default) 9# 3b. Motion Templates - Internal 10# 4. Moving Libraries 10# 5a. Generated Files 11# 5b. Generated Files - Cache 11# 5c. Generated Files - Render Files 11# 5d. Generated Files - Backups 12# C. Managing With Metadata 12# 1. Library Browser - Events 13# !2 2. Event Browser - List View Columns 13# 3. Roles 13# 4. Ratings 14# 5. Used Media 14# 6a. Library Browser Collections - Finder Metadata 15# 6b. Library Browser Collections - FCPX Keywords 15# 6c. Library Browser Collections - Smart Filter Collections 16# 6d. Library Browser Collections - Folders 16# 7. Metadata In The Inspector 17# C. Audio Channel Configuration 17# 1. Channel Settings 17# D. Managing Timeline Media 18# 1. Clip Identification 18# 2. Clip Icon 18# 3. Timeline Index 18# 4. Role Lanes 19# E. Managing Exported Media 19# 1. Export - Metadata 19# 2. Sharing (Exporting) - Tracking 20# E. Conclusion 20 !3 I. FCPX Media Management Final Cut Pro X (FCPX) is a database, metadata based non-linear editing (NLE) system. It is the quickest, most affordable, and easiest professional editor to learn on the market today. Once learned it is a very powerful system to work with, in conjunction with Motion 5 for graphic and template work, and Compressor 4 for transcoding work.
    [Show full text]
  • Apple Publications Style Guide September 2008
    Apple Publications Style Guide September 2008 style n. 1. The way in which something is said, done, expressed, or performed: a style of speech and writing. 2. The combination of distinctive features of literary or artistic expression, execution, or performance characterizing a particular person, group, school, or era. 3. Sort; type: a style of furniture. 4. A quality of imagination and individuality expressed in one’s actions and tastes: does things with style. 5a. A com- fortable and elegant mode of existence: living in style. b. A mode of living: the style of the very rich. 6a. The fashion of the moment, especially of dress; vogue. b. A par- ticular fashion: the style of the 1920s. 7. A customary manner of presenting printed material, including usage, punctuation, spelling, typography, and arrangement. 8. A form of address; a title. 9a. An implement used for etching or engraving. b. A slen- der pointed writing instrument used by the ancients on wax tablets. 10. The needle of a phonograph. 11 . The gnomon of a sundial. 12 . Botany The usually slender part of a pistil, situated between the ovary and the stigma. 13 . Zoology A slender, tubular, or bristlelike process: a cartilaginous style. 14 . Medicine A surgical probing instru- ment; a stylet. 15. Obsolete A pen. —tr. v. styled, styl•ing, styles 1. To call or name; designate: George VI styled his brother Duke of Windsor. 2. To make consistent with rules of style: style a manuscript. 3. To give style to: style hair. [Middle English, from Old French, from Latin stylus, stilus, spike, pointed instrument used for writing, style.
    [Show full text]