iphone

show table view data grouped by on iphone

i am pulling data from xml so is that possible to show them group by?? i have no plsit right now i am showing data just as simple so now i want group by what should be the approach/concept?? i did something like this but no luck d*o i need to do some sorting?? like using NSSortDescriptor??* if yes then where in viewdidload or in cell...

How to set different subview in every section on tableViewCell

guys i want to set different subview in every section, i put my different view into NSMutableArray, so i hope i can access it depend on indexPath.section, this is my code : for (int i =0; i<promoCount; i++) { self.textView.text= [NSString stringWithFormat:@"text view :%d",i]; [self.arrayPromotions addObject:self.textView]; } -...

iPhone: Memory Leak in Custom Class and NSMutableDictionary

I've spent a couple of days trying to find out what's going on. I have read loads of Memory Management documentation and I am sick to death of hearing "for every alloc you need a release" - I know that and I still can't figure out why my code is producing memory leaks. I am writing a simple custom class with an NSMutableDictionary as on...

Two UITableViewControllers and One UISearchDisplay

Hello everyone, I'm new to iPhone programming and is faced with a task to show data on of Books where the first table view shows the books in my library using the title of the book to sort and another table view to show the authors. There is a need to have a search bar on both of the table views and when used to search will show results...

Question about OAuth/XAuth Authentication

Hi, When I develop a App Project on iPhone, it's need to authenticate. My basic requirement is to have custom login screen. But the Service providers currently provide OAuth protocal only, not XAuth protocal. Does this mean that if I use OAuth protocol, it will can not be achieved what I need (custom login screen), and I must be loaded...

Class Delegate does not implement protocol

Hello, I`m doing something wrong here but I can't figure out what it is . AppDelegate.h #import <UIKit/UIKit.h> @interface AppDelegate : NSObject <UIApplicationDelegate, UIScrollViewDelegate> { UIWindow *window; UIScrollView *scrollView; UIPageControl *pageControl; NSMutableArray *viewControllers; UIView *flipsid...

iPhone SDK Nonatomic and Atomic

Really quick and simple question: In Objective-C what is the difference between nonatomic and atomic? like when declaring properties like "@property (nonatomic, retain) id object"? ...

How do I resize a large image on an iPhone 3G without crashing my app?

I am working on an app that downloads images from a web site for display on iOS devices. The app runs fine on an iPad, but when run on an iPhone 3G (the only other physical device at my disposal for testing), it crashes when loading large images. As suggested elsewhere, it seems that 1024 x 1024 is about the largest size image it can con...

what is the exact meaning of "message" in this line on iphone

NSDictionary *story = [stories objectAtIndex: indexPath.row]; cell.text=[NSString stringwithFormat:[story objectForKey@"message]; i dont knw what exaclty "message " contains (what is the meaning of objectForKey@"message") EDIT CODE NSString *key =[appDelegate.books objectAtIndex:indexPath.row]; //dict y=@"Name"; NSArray *na...

Core Data performance issues

Hi all, I have an iPhone app that has the needs to avoid inserting duplicate records, at first I thought I could just test each object in my in-memory array, create a fetch request for each object and test if it exists. But this is proving slow on the device, very slow (about 5 seconds, which is not acceptable). I have been trying to p...

Binary file for upload

I read itunesconnect guide for upload app on appStore and follow steps in the last step says you should run Application Loader and select your binary file(zip file) to upload how can i make this zip file? does it mean compress my app target file(.app file)? ...

iphone/ipad website development/testing on Windows........

Can i successfully do iphone/ipad web development (not native apps) on Windows and without having iphone/ipad device? Work Like PSD to iphone optimized XHTML, CSS layout. Interested to learn and make iphone/ipad optimized websites? Any tips? How much it will be different from desktop? What different other than small screen? ...

how to call a particular function in another class

hi i am new to iphone. what i need is i have to call a function named (void)mymethod from classA to classB. how can i call pls post some code thank u in advance. ...

IPhone Development - Problems on building cells

Hi guys, I have an app that has a lot of views including tableViews but one of them has a problem that I don't know how to solve. When the constructor of the cell is called: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; the parameter cellForRowAtIndexPath:(NSIndexPath *)index...

Objective C - Single Background Thread

I want to run a single background thread for an iPhone application which is available in background all the time and gets executed when specific event fires and go to wait for specific event to fire to start its execution again. During the execution of thread if specific event is fired again then thread should restart its work. I am wo...

Hmm, getting : may not respond to '-presentModalViewController:animated:'

Hello, I`m getting this annoying warning : warning: 'AppDelegate' may not respond to '-presentModalViewController:animated:' In this implementation file : - (IBAction)showInfo:(id)sender { FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil]; controller.delegate...

Select tabbarItem in TabbarController without reloading corresponding viewcontroller?

Hi, In my coding, i have four tabbarItem, when i click each, it works fine. In the fourth i have tableviewController, when i select a row, it leads to second tabbarItem viewontroller, it also working fine. For highlighting the second i tried to use setSelectedIndex, again the second page will load, how to avoid loading the page when sel...

iPhone: Core Data saving error

I am getting the following error when trying to save an object into my core data model: 2010-09-01 22:07:50.569 Score Card[26566:207] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1262.60.3/UITableView.m:904 2010-09-01 22:07:50.570 Score Card[26566:207] Serious application error. E...

UIDeviceFamily only for iphone

I want to submit a application which can only run on iphone device. But when i select the UIDeviceFamily as iPhone its giving me iPhone/ iPod in the description. I am using camera in the application ? Ny suggestion on how to do it? ...

Adding a button to UIDatePicker

Is it possible to add a 'Done' button to a UIDatePickerView,so that users can tap it to dismiss the view. ...