Semi working sample on iOS