Programming (126) 썸네일형 리스트형 UICollectionViewFlowLayout A layout object that organizes items into a grid with optional header and footer views for each section. Declaration class UICollectionViewFlowLayout : UICollectionViewLayout Overview A flow layout is a type of collection view layout. Items in the collection view flow from one row or column (depending on the scrolling direction) to the next, with each row containing as many cells as will fit. Ce.. UITableViewDelegate Methods for managing selections, configuring section headers and footers, deleting and reordering cells, and performing other actions in a table view. Declaration protocol UITableViewDelegate Overview Use the methods of this protocol to manage the following features: Create and manage custom header and footer views. Specify custom heights for rows, headers, and footers. Provide height estimates .. Human Interface Guidelines: Modality Modality is a design technique that presents content in a temporary mode that’s separate from the user's previous current context and requires an explicit action to exit. Presenting content modally can: Help people focus on a self-contained task or set of closely related options Ensure that people receive and, if necessary, act on critical information Alert Modal View iOS provides Alerts, Activi.. Human Interface Guidelines: Navigation People tend to be unaware of an app’s navigation until it doesn’t meet their expectations. Your job is to implement navigation in a way that supports the structure and purpose of your app without calling attention to itself. Navigation should feel natural and familiar, and shouldn’t dominate the interface or draw focus away from content. In iOS, there are three main styles of navigation.Hierarch.. Class: UISlider A control for selecting a single value from a continuous range of values. Declaration class UISlider : UIControl Overview As you move the thumb of a slider, it passes its updated value to any actions attached to it. The appearance of sliders is configurable; you can tint the track and the thumb, and provide images to appear at the ends of the slider. You can add sliders to your interface program.. How to use UIColorFromRGB in Swift stackoverflow.com/questions/24074257/how-can-i-use-uicolorfromrgb-in-swift How can I use UIColorFromRGB in Swift? In Objective-C, we use this code to set RGB color codes for views: #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((flo... stackoverflow.com https://stackoverflow.com/questions/24112272/uiview-background-color-in-swift UIView.. UIKit Construct and manage a graphical, event-driven user interface for your iOS or tvOS app. Overview The UIKit framework provides the required infrastructure for your iOS or tvOS apps. It provides the window and view architecture for implementing your interface, the event handling infrastructure for delivering Multi-Touch and other types of input to your app, and the main run loop needed to manage i.. switch statement A switch statement considers a value and compares it against several possible matching patterns. It then executes an appropriate block of code, based on the first pattern that matches successfully. A switch statement provides an alternative to the if statement for responding to multiple potential states. docs.swift.org/swift-book/LanguageGuide/ControlFlow.html#:~:text=message%20is%20printed.-,Sw.. Initialization Initialization is the process of preparing an instance of a class, structure, or enumeration for use. This process involves setting an initial value for each stored property on that instance and performing any other setup or initialization that is required before the new instance is ready for use. docs.swift.org/swift-book/LanguageGuide/Initialization.html#:~:text=Initialization%20is%20the%20pro.. Unexpectedly found nil while implicitly unwrapping an optional value stackoverflow.com/questions/32170456/what-does-fatal-error-unexpectedly-found-nil-while-unwrapping-an-optional-valu What does "Fatal error: Unexpectedly found nil while unwrapping an Optional value" mean? My Swift program is crashing with EXC_BAD_INSTRUCTION and one of the following similar errors. What does this error mean, and how do I fix it? Fatal error: Unexpectedly found nil while unwrappi.. 이전 1 2 3 4 5 6 7 8 ··· 13 다음