PicnicContentManager

public class PicnicContentManager: NSObject
  • コンテンツ情報を読み込むためのマネージャクラス
  • エラー

    - IllegalState: 不正な状態
    
    See more

    Declaration

    Swift

    public enum Error: ErrorType
  • マネージャクラスの唯一のインスタンス(シングルトン)

    Declaration

    Swift

    public static let sharedManager = PicnicContentManager()
  • Declaration

    Swift

    public private(set) var contents = [PicnicContent]()
  • Declaration

    Swift

    public func count() -> Int

    Return Value

    コンテンツ数

  • 全てのコンテンツを削除する

    Declaration

    Swift

    public func removeAll()
  • JSONデータを読み込んでコンテンツを設定する

    Declaration

    Swift

    public func setContentsFromJSON(data: NSData) throws

    Parameters

    data

    JSONデータ