All things iOS & Swift

Posts by Shaideru

Docker: Unauthorized: incorrect username or password

Docker Solution for the error below:

This error occured when running docker run hello-world run docker login and enter your docker account username, not your email.

Enabling root via terminal to access REPL

first of, go to terminal and enable root type in, dsenableroot It will ask for you user account password and will ask for you root password you can enter any password for root as your default pw during prompt after enabling, log in as root, type su root enter your root password you provided previously after that, type swift in the terminal    keep pressing space until you are ask to

Continue reading…


It has been 2 weeks non stop on developing Orgnz app, an organizer to keep track of your activities, and be more productive. It’s 90% completed. It has been a learning experience for me building this app, functionally this app is integrated with cocoapods, core animation, core data and other iOS frameworks. Feeling accomplished.

iOS App Memory Budget

When building an app, it’s always better to be aware of your apps memory. Things to consider: Limit your assets file size or just load them when they are need. Avoid memory splashes. try not to go beyond 65Mb of RAM, it would kill your app instantly anyway. iPad1: 127MB/256MB/49% (crash amount/total amount/percentage of total) iPad2: 275MB/512MB/53% iPad3: 645MB/1024MB/62% iPad4: 585MB/1024MB/57% (iOS 8.1) iPad Mini 1st Generation: 297MB/512MB/58% iPad Mini

Continue reading…

Fetching attributes in Core Data

Create an Array of AnyObject, you have to keep in mind that to access the index subscript you must have an array var chartData: Array = [] Create an instance of AppDelegate and NSManagedObjectContext let appDel: AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate let context: NSManagedObjectContext = appDel.managedObjectContext! Create a fetch request an execute it var fetchRequest = NSFetchRequest(entityName: “ActivityEntity”) chartData = context.executeFetchRequest(fetchRequest, error: nil) as [ActivityEntity] To access the attributes of the

Continue reading…

  • 1 2 4