some code snippet for IOS to make development faster