Open Instance Methodswift 6.0.3Foundation
replaceObjects(in:withObjectsFrom:)
func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any])
func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any])
s10Foundation14NSMutableArrayC14replaceObjects2in04withE4FromyAA8_NSRangeV_SayypGtF
What are these?4YSUN
import Foundation
class NSMutableArray
override init()
init(capacity numItems: Int)
required init(objects: UnsafePointer<AnyObject>?, count: Int)
override subscript(idx: Int) -> Any { get set }
func add(_ anObject: Any)
func addObjects(from otherArray: [Any])
func exchangeObject(at idx1: Int, withObjectAt idx2: Int)
func filter(using predicate: NSPredicate)
func insert(_ objects: [Any], at indexes: IndexSet)
func insert(_ anObject: Any, at index: Int)
func remove(_ anObject: Any)
func remove(_ anObject: Any, in range: NSRange)
func removeAllObjects()
func removeLastObject()
func removeObject(at index: Int)
func removeObject(identicalTo anObject: Any)
func removeObject(identicalTo anObject: Any, in range: NSRange)
func removeObjects(at indexes: IndexSet)
func removeObjects(in range: NSRange)
func removeObjects(in otherArray: [Any])
func replaceObject(at index: Int, with anObject: Any)
func replaceObjects(at indexes: IndexSet, with objects: [Any])
func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any], range otherRange: NSRange)
func setArray(_ otherArray: [Any])
func sort(_ compare: (Any, Any, UnsafeMutableRawPointer?) -> Int, context: UnsafeMutableRawPointer?)
func sort(comparator: (Any, Any) -> ComparisonResult)
func sort(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)
func sort(using sortDescriptors: [NSSortDescriptor])