Tag: ipad

UILabel text as html text

I am stack with a small issue. I need to use a sentence which will have first two words bold and last two words italic. like I am using an Objective C Developer. How to do that. Is this possible in Objective C? Regards,

iOS Universal App question

I have submitted my iPad app to apple and got approved. Now, i want to add iPhone support to the App. My question no.1 is: Q1. is it possible to make the app universal at this moment after submission? If yes, i have question no.2 Q2. my iPhone app is exactly the same as the […]

iPad Orientation Checking UIView Class?

I have a UIView class which I add to my main UIViewController and I need to check the orientation of the device (iPad) at the launch of the app, in the viewDidLoad method. However because the class is a UIView (not UIViewController) I can’t use methods such as willAnimateRotationToInterfaceOrientation. So I attempted to use this […]

iOS 7 UINavigationBar Background image hides Title view

I made iOS app, in which i want my app to compatible with iOS 7 Problem which i am facing is, when i run my app on iOS 7, Background image of my UINavigationBar hides my titleview and back button : -(void)viewDidLoad { [super viewDidLoad]; [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@”top.png”] forBarMetrics:UIBarMetricsDefault]; self.title=@”Artist”; self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@”Back” […]

NSSortDescriptor with first name and last name,or with either first name or last name?

I am doing sorting of an contact info array,it’s working fine when I entered first name and last for particular contact,but it’s not working fine when any of it is missing, For Ex: if I enter first name John and last name mickey ,then it gives proper sorting,but if I enter only mickey then it […]

Determine Country associated with Apple ID logged into the iOS device

I have a particular scenario in my application where some content (coming from service) needs to be displayed based on location or say country of the user. There are two/three ways I figured out by which I could accomplish this but they have some disadvantages as mentioned below. 1) Using NSLocale NSLocale *locale = [NSLocale […]

CocoaAsyncSocket doesn't work after being in background

I have an instance of AsyncSocket which I’ve been using as a server on an iPad, and then an AsyncSocket socket running on another iPad which is acting as the client. I have all the necessary code to exchange data between the client and server — there are no issues there. The problem I’m experiencing […]

LinkedIn Integration r_network and w_messages request not working together in iOS sdk

I have done LinkedIn integration and I have to send message to particular users.For that first I am fetching connections and then sending messages. (void)requestTokenFromProvider { OAMutableURLRequest *request = [[[OAMutableURLRequest alloc] initWithURL:requestTokenURL consumer:self.consumer token:nil callback:linkedInCallbackURL signatureProvider:nil] autorelease]; [request setHTTPMethod:@”POST”]; OARequestParameter *nameParam = [[OARequestParameter alloc] initWithName:@”scope” value:@”r_basicprofile+w_messages+r_network”]; NSArray *params = [NSArray arrayWithObjects:nameParam, nil]; [request setParameters:params]; OARequestParameter […]

Can't get the iPad to vibrate

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); This line of code does not seem to work on the iPad – does the iPad have the hardware required to vibrate?

Objective-C: Is there any event when a Table Cell goes away?

Is there any message I can override called when a Table Cell goes away (on scrolling the table)? I think it should be something like dealoc. I’m asking this because I have below situation: I have a table with many cells (100+) and each of this cell contains a ImageView. For loading the image (from […]