Techbirds | Knowledge Hub | Page 30

A UIImage is an object representing image data. A UIImage is typically displayed inside a UIImageView: exam: UIImage *bgImage = [UIImage imageNamed:@”background.jpg”]; UIImageView *imgView = (UIImageView *)[self.view viewWithTag:20]; imgView.image = bgImage; // display the bgImage data inside the imgView The simplest way to load an image is with the imageNamed method, however this loads the

Read More →

494 total views, no views today

Posted on: April 28, 2014 /

Categories: PHP / Author Name: Shivek Parmar

Sometimes here occurs a condition that we have to fetch UTF-8 encoded data from MySQL database. To save the data in UTF-8 encoding we can use UTF-8 General_ci collation. But the method to fetch the UTF-8 data in MySql php is a bit different. You cannot use the ordinary method to fetch the UTF-8 data

Read More →

555 total views, no views today

UDID stands for Universal Device Identifier which uniquely identify device, a sequence of 40 hexadecimal character length alphabet. Apple has hidden this UDID from iOS 6 for security purpose. It was accessable before iOS6. iOS developers can access below code :- NSString *udid; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@”6.0″)) udid = [UIDevice currentDevice].identifierForVendor.UUIDString; else udid = [UIDevice currentDevice].uniqueIdentifier; 1

Read More →

5,031 total views, no views today

Apple provide a numerous way to get device iOS version at run time :- 1) Using UIDevice Class float deviceVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; e.g. iOS Version = 6.1 int deviceVersion = [[[UIDevice currentDevice] systemVersion] integerValue]; e.g. iOS Version = 6 2) According to iOS 7 Guideline Document, we can use Foundation Class Predefine

Read More →

741 total views, no views today

Apple provide following way to find out the Device Type or Model such we can make application Universal or can change or load User Interface according to iPad or iPhone5 or iPhone dynamically. 1) Using UIDevice Class if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad){ //iPad }else{ if ([UIScreen mainScreen].bounds.size.height > 500) { //iPhone5 or iPod5 }else{ //iPhone

Read More →

780 total views, no views today