iphone

NSFetchedResultsController refresh refetch?

I want to refetch data from my NSFetchedResultsController using a different predicate which is set using a boolean value. How do I refresh NSFetchedResultsController to fetch a new set of data? - (void)refreshFetchedResultsController { NSLog(@"refreshFetchedResultsController"); NSError *error = nil; if (![[self fetchedResul...

how to pass arguments to url (.php file)

http://something.php?ownerID=13&view=userAgreement i need to pass two variables to this .. how can i pass these i am declared ownerid to 13 in my config playlist and i am able to get it ,how to set "view = useragreement" string to view variable.... can any body show me sample code.. i am using like NSString* termsURL = [[[NSBundl...

UIViewContentModeScaleToFill problem

I have a tableview that displays the properties of an item (a NSManagedObject). I have a toolbar button that allows the user to add a photo to the Item, which is then displayed in the tableView. I have the cell's imageView formatted to scale the image to fill the imageview using UIViewContentModeScaleToFill. The problem is that the imag...

Best way to implement a custom UITableViewCellAccessoryType to use as check mark (like a to-do list).

I need to create a checklist using a UITableView with the accessoryView as a custom check box and tick, what would be the best (fast & efficient) way to do this? Also what would be the best way to tick/untick it from within accessoryButtonTappedForRowWithIndexPath and store/retrieve the current state of the row (checked/unchecked) for e...

How to Prevent Multiple UIAlertView Alerts from Popping Up at Once?

My tabbar application has three tabs, each with its own navigational structure. Several of the views throughout my app load data via web service calls. These views register this notification in order to know when the app becomes active, so that they can reload the data: [[NSNotificationCenter defaultCenter] addObserver:self ...

iPhone Xcode UIButton Title Will Not Appear

So I am making an iPhone program and for some odd reason the title of my UIButtons will not show... am I missing something?? I get no errors or even warnings on compilation and my buttons and everything appear, just the title is not being shown.... FurballViewController.m ... -(void)loadView { UIButton *btn = [UIButton buttonWith...

What is the easiest way to integrate iPhone app with Web Sites that don't have web service

I am about to offer an iphone app for a travel agency. They probably use web services but if not what can I do? What is the easiest way to integrate an iPhone app that read and send data to a website without web service. Site is built with php (I dont know php am a java guy). What can I do for that? Client is a travel agency has a websit...

Start CATransition at specific location

I have a CATransition (code below) that moves a view down. How can I specify a location for the animation to start, for example 60, 30. Here's the code I'm currently using: CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromBott...

Problem with sending data to Modal View Controller on iPhone

So I've got one main view with some images on it, and when someone touches one of the images, the image will return an ID number to this main view and then this view will present a modal view controller to display a larger version of this image. But the current way I'm doing it, the function on the modal controller is getting there befor...

Table row deletion in Iphone.

Hi, I have a with Table editing in iPhone. I'm using Delegate and Datasource in my project. The problem is when we click Delete disclosure, i'm not getting Delete button. I'm a newbie in iphone programming. So please help me. Thanks in advance. ...

how to get the user list those who are access my facebook application through my iphone apps

Hi, i am creating an iphone apps which need to use facebook login details to enter into the apps as Groupon iphone apps. In Groupon, they are using FBConnect to access their facebook application, based on the login success they are allowing me to access their deals. I had used FBConnect package to post some message to user's wall using...

Access iPhone's Bluetooth and normal audio session at the same time?

Hey guys, I have a bit of an interesting problem and I'm not sure how to go about solving it. I need to take the audio from a connected bluetooth headset and pipe it directly to the speaker on the iPhone's device and vice-versa. Accessing the Bluetooth audio session is easy enough: // Use a Play and Record Category, because we'll be bot...

How to send bluetooth messages between iphones

I need to send bluetooth messages between phones. How do i do that? ...

How many ratings are enough to display an average for an app on the App Store?

I have seen the message "We have not received enough ratings to display an average for the current version of this application" How many ratings are enough to warrant a display? ...

Optimizing a UIScrollView with a lot of subviews

Hello, I have a UIScrollView that I am using to simulate a UITableView like interaction because rows are a bit more complex than what UITableView has to offer. I have 4 UILables a UIImageView and a UIButton for every row. The end result is a lot of subviews. Even with only 10 rows,the scroll view that looks fine in the simulator bu...

UIKeyboard is not added to UIWindow subviews

I used to use the following code to add a UIToolbar just above the UIKeyboard and being attached to it. I just switched to the iPhone OS 4 and I realized that it's not working anymore. for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) { for (UIView *keyboard in [keyboardWindow subviews]) { //print all...

Delete particular row from table view

Hi Guys, In my app, I want to delete particular row from table view. Table view contents are coming from database and after getting data from database then I pushed to array. Then I reversed an array, Here after I am displaying content in table view. My problem is that when I am trying to delete the second row of table view on behalf o...

Get on screen coordinates of a certain UITableViewCell?

So, I have this UITableView. It's in an iPad application. Some of the cells have an accessory button on the right (the small round arrow). When that is pressed, I present a popover view where the user can select actions related to the table cell that they touched. So far, nothing of this is difficult or exceptional. But the popover view...

Managing user session with devise on iPhone APP

Hi, I have a Rails application for which I use devise to authenticate my users and this works great. I now want to write an iPhone application (not just a WebUI but a proper APP) that accesses the same data and so requires the same authentication. How should I go about doing this? I want to login using devise and keep the session ope...

How to tell amount of hours since NSDate

I initiated an NSDate with [NSDate date]; and I want to check whether or not it's been 5 hours since that NSDate variable. How would I go about doing that? What I have in my code is requestTime = [[NSDate alloc] init]; requestTime = [NSDate date]; In a later method I want to check whether or not it's been 12 hours since requestTime. P...