objective-c

NSFetchRequest not fetching any data for the following code ...

NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName: @"Data" inManagedObjectContext:managedObjectContext]; [request setEntity:entity]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"prospectId=%d", 123]; [request setPredicate:predicate]; NSError *error; ...

Method, instances and classes in Objective-C

I was wondering if anyone would be kind enough to define what a class, instance and method is in Objective-C or point me in the right direction or a good Objective-C learning resource. Thanks! ...

what method calls when we click on to the record button in UIImagePickerViewController for capturing a video in iphone sdk?

Hi guys, I need to know which method call when we tap on to the start record button in UIImagePickerViewController I need to set a timer to get the duration for the recording video. guy's please help me. Thanks in advance, Monish. ...

creating liquidEffect in iphone

hi to all, friends I am new in game development programing .And I want to understand the how to give liquidEffect to text & and to the image in window base application. thanks in advance ...

Add navigationcontroller to detail view in splitview

Hi, I am following this example: http://doronkatz.com/ipad-programming-tutorial-hello-world. This example works great. Now i want 3 tabs in the splitview and for each tab a new navigationcontroller. But i don't know how to implement it. I go to this code: - (void)setDetailItem:(id)newDetailItem { if (detailItem != newDetailItem) { ...

Add Group of Persons to ABAddressBookRef, group added ok, but person didn't add to Group?

I have some lines of Objective-C code like: ABAddressBookRef addressBook; CFErrorRef error = NULL; addressBook = ABAddressBookCreate(); ABRecordRef group = ABGroupCreate(); ABRecordSetValue(group, kABGroupNameProperty,@"My Group", &error); ABRecordRef person = ABPersonCreate(); ABRecordSetValue(person,kABPersonFirstNameProperty,@"Huy 1...

How to insert UIWebView between UITableViewCells when I tap on accessoryButtonTappedForRowWithIndexPath?

Hi Guys, I need to display the UIWebView under the UITableViewCell when user selects the required cell by tapping on the accessoryButtonTappedForRowWithIndexPath. for example I have three rows, Home, Office and History, which are displayed in table view. If user selects Office then the details in webview should displayed under office's...

objective C Basic question

how do i set the size of tableview that is inherrited from UITableViewController like this @interface myTableViewController : UITableViewController { ............ ............ } ...

Terminating app due to unget exception 'NSInvalidArgumentException reason[sharepicture facebookAgent:photoUploaded:]: unrecognized selec'

2010-09-23 12:58:42.967 CelebBooth[2317:207] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[sharepicture facebookAgent:photoUploaded:]: unrecognized selector sent to instance 0x6f5b170' * Call stack at first throw: ( 0 CoreFoundation 0x02447919 exceptionPreprocess + 185 ...

Looking up address using mapkit and searchbar

Hi, I am trying to make an app similar to the Maps of the iPhone. I want to use the Mapkit and a searchbar to look up an address. And then use the address to add it to my tableview But I have actually no idea how to do this. Does someone have a clue for me? A tutorial or an example? thanks in advance ====================== Right now ...

how to use array of class in another class in iphone sdk?

i have two classes class a and class b import class b; class a{ nsmutablearray *a=@"--some objects----"; } class b{ something } i want to use that array in class b so that i can display it on a table in class b can anybodt tell how can i do it? ...

Can't get email address using facebook sdk for IOS and graph api for facebook

Hello, I am trying to get the email address from a user. He logs in, I ask permission to access email and he chooses ok. Then I use the graph API from facebook to access the email address. - (void) fbDidLogin { btnLogin.isLoggedIn = TRUE; [btnLogin updateImage]; NSString *theURL = [ [NSString stringWithFormat: @"https://...

View not animating

Hello , I'm using this method to try to move my view up but without success, this is the code in my MainViewController implementation file : [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; CGRect rect = self.view.frame; if (movedUp) { NSLog(@"should move Up"); rect.origin.y -= 50; rect.size.he...

How would I send an NSArray filled with objects over a HTTP POST?

I have a product/shopping list (consisting of product objects with a name, product_id etc) on the iPhone side. I wish to send this list to the server where I will compare the list on the server with the one from the iphone (to merge the changes made and send the merged list back to the iphone). How would I send my array over a HTTP POST...

how to control auto scroll in scrollview with slider

Hi, I have an a vertical scroll-view in which i have 3-4 child scrollviews that slide horizontally, i want to control the vertical scroll-view (Parent) with a slider. Anyone have any idea for this? Thanks Inam ...

Adding UIImageView's to UIScrollView

I am currently researching ways of adding several UIImageView's to a single UIScrollView. The UIScroll view will be 1.5 times the size of any one of the UIImageView's. I want to create a scrolling effect for browsing through some small images in an iPad application. Does anyone know how to achieve this? ...

Is it possible to add Annotations fastly to the MapView from the list

Hi all, I had a problem with when removing and adding annotations to the MapView. I need to refresh the Annotations every 10 seconds. But it is taking too long time when removing and adding the Annotations. Is there any other methods to do it fast. The following code I am using for remove and adding annotations.Please suggest any ideas ...

Hiding the toolbar

Hi guys, I am doing application using ios 4.0.I need to hide UIToolbar when I go from second view to firstview.As secondview consists UIToolbar.In secondView I am having NavigationBarButton I wrote the code as below. -(void)back { [toolbar removeFromSuperview]; [self.navigationController popToRootViewControllerAnimated:YES]; } So,...

need guidence for creating a calender

Hi, I have to use a calendar in my iphone application. I tried hard but could not find any inbuilt API in iphone sdk for this purpose. Now i am going to create calendar by myself and need some guidance for it. I have created 5 rows of 7 buttons(i.e, 35 buttons in all) and will be using it as the date and then later i will add other gr...

how to reload table view in iphone application.

Hi all. I am displaying 10 feed in UItable view and below i have added a button with name load more 20.. by clicking this button i am passing argument to the xml and in return i want to reload the table view with fresh content. welll my question is that how to the view again. i am trying somthing like this -(IBAction)loadMore20 { ...