Tag: ios

Right To Left Push animation results in corrupted navigation bar

I’m subclassing my UINavigationController to perform a push from right to left (not normal behavior) with UIRTLNavigationController.m I’ve added at the bottom of this question and get these warnings: nested push animation can result in corrupted navigation bar Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. I’ve […]

How to tag friends in startWithGraphPath Facebook iOS

I can’t seem to get my posts to work using the Facebook SDK for iOS. I am using the “startWithGraphPath:parameters:HTTPMethod:completionHandler:” function. I can get the message, place, and picture working but I can’t seem to tag friends. I have tried setting the NSDictionary key and object to parameters[@”tags”] = self.friendsIDs; which is a string of […]

ios NSOperationQueue, operations all run when added and don't queue

So, I have a group of ASINetworkQueues that currently run together resulting in a race condition when it comes to DB saves. I am trying to create an NSOperationQueue that will will queue each of these “sub queues”. I currently have created an NSOperation with a main method that kicks off the “sub queue” to […]

UILocalNotification Problem

I have a local notification that I would like to fire every 5 minutes. I use: localNotif.repeatInterval = NSMinuteCalendarUnit that will have the notification happen once every minute. I can’t figure out how to get this to happen every 5 minutes or whatever other >1 minutes interval. I’ve tried: localNotif.repeatInterval= 5 * NSMinuteCalendarUnit and that […]

Pass back data using , and reload data

View post on imgur.com In the picture provided above, shows three view controllers. Let’s call the view controllers A, B, and C in the order they’re displayed. View Controller A passes parsed jSON data by clicking on the table cell. This fills up the “total sales, discounts, etc.” strings/labels inside of the View Controller B […]

Recognising a circle gesture to drop an annotation, how to detect circle?

I’ve found some code which detects a circle gesture anywhere in a view: http://iphonedevelopment.blogspot.com/2009/04/detecting-circle-gesture.html It works fine. Now I want to incorporate it into a map view, so that the user can draw a circle, and a map pin gets dropped in the the middle of the drawn circle. The above code doesn’t work if […]

how to add images in UITableviewcells Programatically in ios

Hi I need to add different images in UITableViewCells programmatically. How can i do that.I am trying some code.But the images are not displayed in UITableViewCells. This is my code below. Please help me anybody. Thanks in advance. -(void)viewDidLoad { arrImages=[[NSMutableArray alloc]initWithObjects:@”image.png”,@”image2.png”,@”image3.png”,@”image4.png”,@”image5.png”,@”image6.png”,@”image7.png”,@”image8.png” nil]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier=@”cell”; UITableViewCell *cell […]

How can we allow our app to run when screen is locked

I have a problem with device locking. If my app is running and device gets locked then my app is also not working. I want my app to work even if my device is locked. My code is as follows: – (void)applicationDidEnterBackground:(UIApplication *)application { [[UIApplication sharedApplication] setIdleTimerDisabled:NO]; background = YES; UIApplication *app = [UIApplication sharedApplication]; […]

How to increase View size with UITextview?

I have made one sample demo ,When I type on UITextview it Will Expands but the view will not expand which is the super view of UITextview. Code – (void)textViewDidChange:(UITextView *)textView { CGFloat fixedWidth = textView.frame.size.width; CGSize newSize = [textView sizeThatFits:CGSizeMake(fixedWidth, MAXFLOAT)]; CGRect newFrame = textView.frame; newFrame.size = CGSizeMake(fmaxf(newSize.width, fixedWidth), newSize.height); textView.frame = newFrame; self.myTextView.scrollEnabled […]

How do Prevent a copy/paste/select popover on a UITextView using UIMenuController iOS5.1

The question: How do I prevent the copy/paste/select popup that occurs over a UITextView from appearing (not using UIwebView and css)? I did not want to go the rout of UIWebView as some posts have gone because I already am using UIViews with UITextFields for data entry. I had tried unsuccessfully to implement the solutions […]