iphone

iPhone Tableview doesn't work for Apple testers

My application has been rejected because the application did not function when reviewed by the iPhone App Review Team. The application is supposed to load words into a table view, but did not do so during the review. However, the application functions perfectly on my iPhone. Can you please give me any suggestions as to why an application...

Is possible to read plist from application bundle and documents folder at the same time?

Is it possible?to read from my local bundle and at the same time also read from documents folder into UItableview? thanks thanks yes.simultaneously ...

One Root view controller , Manages all other views?

Hi guys, I was just wondering if its normal for an app to a have one root view controller which gets passed other view controllers and switches betwen them ? - in other words there is one view controller which switches between all other views. So one root controller manages all the other views ( so in a large application for the sake o...

Core Data executing a "sub query"

Hi, I would like to execute some kind of subquery with my fetchedresultscontroller. I've got a set of items which have a flag like "viewed" or "not viewed". Is it possible to switch between these items... Sure I could do a complete refetch but this takes some time. Is there a better way for doing this? Many thanks! ...

How do you use afconvert to convert from wav to aac caf WITHOUT RESAMPLING

I'm making an Iphone game, we need to use a compressed format for sound, and we want to be able to loop SEAMLESSLY back to a specific sample in the audio file (so there is an intro, then it loops back to an offset) currently THE ONLY export process I have found that will allow seamless looping (reports the right priming and padding fram...

Convert hex data string to NSData in Objective C (cocoa)

Hi, fairly new iPhone developer here. Building an app to send RS232 commands to a device expecting them over a TCP/IP socket connection. I've got the comms part down, and can send ASCII commands fine. It's the hex code commands I'm having trouble with. So lets say I have the following hex data to send (in this format): \x1C\x02d\x00\x...

I want to know how to sort the dates in objective c ?

how to sort date using nsarray ? I have four dates , that should by display by ascending order.can you explain how to sort ? I searched so many stuff, but i can't ablt to find any thing .Please help me , is there any method for date sort. ...

Having a UITabBar AND a UINavigationController in an app?

Hey everyone, I am new to iPhone development and I'm not understanding the whole UINavigationController and UITabBarController idea. Is one a substitute for the other - how do apps such as Tweetie combine both? I'd like to have my app have a persistent Tab Bar @ the bottom (which seems to be working), but also a Navigation bar at the to...

SQLite, iPhone and versioning

I want to include an updated SQLite database with a new version of an app. My app copies the database file into the Documents directory on startup. What is the best way to do this kind of versioning (besides using Core Data)? I'm assuming that either a special 'version' table in the SQLite file or a small text file with the version numb...

How can I add a startup sound when UIViewController *controller is initiated?

ViewDidLoad doesnt work. ViewDidappear Doesnt work. No matter what happens, the sound is played then the viewController image is displayed. What I want is the image to be displayed, then the sound plays simultaneously' ...

iPhone view navigation - any clever ideas?

Hi there, I have an app that is built starting from a tab bar controller. It's possible for the user to bring up other screens that are loaded with: [self.navigationController pushViewController:nextSCreen animated:YES]; The user travels several levels deep this way. Eventually I want to be able to jump back to the original screen. ...

Some stress tests on my Iphone app

I ran a few stress tests on my Iphone app. The results are below. I am wondering if I should be concerned and, if so, what I might do about it. I set up a timer to fire once a second. Whenever the timer fired, the app requested some XML data from the server. When the data arrived, the app then parsed the data and redisplayed the aff...

Memory leak tool tells me zero leaks but memory footprint keeps rising

I'm running through some memory profiling for my application in SDK 3.2 and I used the 'Leak' profiler to find all my memory leaks and I plugged all of them up. This is a scrollView navigationController application where there are tiles and you click a tile which goes to a new view of tiles and so on, I can go many levels deep and come ...

Can't search subdirs with CFBundleCopyResourceURL

I am working the iphone/ipad 3.2 SDK and have created a subdirectory named "Docs" under the default Resources directory "Resources-iPad". If I place "file.pdf" directly in the resources directory and make this call, all works well: CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(),CFSTR("file.pdf"), NULL, NULL); If I ...

pushViewController crahses

I'm trying to push a new view on my navigation controller using: -(IBAction)switchPage:(id)sender { MyTableViewController *myTableView = [[CMyTableViewController alloc] initWithNibName:@"MyTableView" bundle:[NSBundle mainBundle]]; [myTableView release]; [self.navigationController pushViewController:myTableView animated:YES]; } ...

UITableView + Add content offset at top

I need to add some blank space to the top of my UITableView that does not effect the size of the content area. Shifting the content down or adding a blank cell is NOT what I want to do. Instead I just want an offset. Any idea? ...

how to run application in background in iphone?

i have implemented one application.I want to run this application in iphone background(not client server base).How it possible.Please help me. Thanks in advance. ...

Compare value doesn't work (Objective-C)

Hi, In my tableView at the numberOfRowInSection, I try to compare myDate inside self.date to dateInFiche inside self.allDates. my date is like: 12-05-1986 in the For statement dateinFiche will have those value: 12-05-1986 12-05-1986 13-05-1986 18-05-1986 When the if statement occurs the first date is the same so it will increment the...

Hiding a UINavigationController's UIToolbar during viewWillDisappear:

I've got an iPhone application with a UITableView menu. When a row in the table is selected, the appropriate view controller is pushed onto the application's UINavigationController stack. My issue is that the MenuViewController does not need a toolbar, but the UIViewControllers which are pushed onto the stack do. Each UIViewController t...

Fastest and most efficient way to fetch a record from Remote MySQL to iPhone

What is the fastest way of getting a single record from a MySQL database on the server side to an iPhone native app? The return type is NSString ...