iphone

sqlite3 is not working in my iphone application.

I want to use sqlite3 for my iphone application. But it is not working. Scenario is :- On click event of a button a method should run and retrieve the data from the database. But My sequence of program is not going into if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { const char *sqlStatement = "select * from r...

how can i reduce the size of image in imageview

hi i am new to iphone. what i am doing is displaying 20 images as grid and selected image is diaplyed as full image in imageview. when i rotate the simulator to landscape image is not adjusted correctly in image view. i am trying by changing the position of image but no use. now what i need is reduce the size of selected image size in ...

Newbie leaks that I don't quite understand

After fixing other leaks that Instruments was indicating, I find myself in need for help to find my leaches in the following code: -(void) readHistoryFromDatabase { sqlite3 *database; NSMutableArray *days = [[NSMutableArray alloc] init]; NSInteger currentMonth; int noMonths = 0; int historyCount = 0; NSDateFormatter *date...

Parsing XML With QueryString.

hello i have problem during parsing the xml with QueryString like (http://kkk.xyz.no/response.php?token=article&sectionid=4) in iphone app. The QueryString are passed from program at runtime. ...

Can't automatically load localized resources with pathForResource

Hi everybody. I've got an iPhone app that need to be localized. No problem with strings, but, I'm having trouble with resources : I need to load HTML pages that are localized. The files are like : presentation.htm The files are added in the project with the folder where they are (html/), and it add the group called as the folder. I...

How to check programatically if an App is installed?

I am developing an iPhone application which will install few third party applications in an enterprise. I have the information about the bundle IDs. Is there a way to check if the application is already installed, using some system APIs? Currently the application gets installed again, overwriting the current installation. I need to preve...

Change color of navigation bar of the MPMediaPickerController, possible?

I have a MPMediaPickerController that lets the user pick his/her own songs in my app. Problem is my app has the "black" navigation bar throughout and the picker is the standard blue. Now I know it's not allowed/possible to subclass the picker but is there any other way to change the navigation bar to "black"? ...

Preferred kind of array for storing iPhone favorite items?

I am using the following array to add an object that was previously created to the favorite array: NSMutableArray *favorites = [NSMutableArray addObject:[myList objectAtIndex:1]]; However, this code keeps crashing at runtime. I think this is not the best way to implement an array that can save and delete items; is there a better way t...

Can't see why there is a memory leak here

I have the following block giving me problems in the performance tool: Particularly it is saying STObject is leaking. I am not sure why? for (NSDictionary *message in messages) { STObject *mySTObject = [[STObject alloc] init]; mySTObject.stID = [message valueForKey:@"id"]; [items addObject:mySTObject]; [mySTObject rele...

(IPhone DataCore) Error on ReloadData of UiTableViewController results with UISearchBar

I have only one fetchresult defined in application for displaying data in UiTableViewController. -> No Prob I switch with tabcontrol to an other ViewController with one button. The button action modifies the fetchresults with NSPredicate. If i switch back, the list is updated. -> No Prob. But if i use UISearchBar to change the fetchre...

Can I port my old C# desktop application on IPad using MonoTouch?

Can I port my old C# desktop application on IPad using MonoTouch? ...

How to create similar interface like the Photo application in iPhone?

How do I start an application which has a similar interface like the Photo application that ships with the iPhone? Specifically an interface with a UITabBarController and UINavigationController both present in the view. ...

How to automatically update an iPhone app from within the app itself?

This link shows a video where an app upgrade is "forced" from within the app itself: http://buzzworks.de/blog/update-ios-beta-apps-from-within-the-app The App Store is not called in and it's said to work only for AdHoc apps. Anyone knows how is this possible? edit: please give a look to the video before answering. AdHoc apps are sign...

ScrollView not scrolling when dragging on buttons

I have a scroll view that used to scroll when it didn't have buttons all over it. Now it does, and when dragging the mouse (on simulator) nothing happens (i think because the buttons are being pushed). How can I make this right? ...

launch an app from a link in an sms

hey all, i have a very strange requirement... i need to launch my app from let's say, a hyperlink that is received in an sms. can this be done somehow? i mean, the person who receives the sms simply taps on the link provided in the "special sms", and that launches the application something like a special link which invokes the app in the...

APNS Send notifications from multiple servers

I am writing an iOS application which will be sent notifications over APNS from backend servers. Can I configure multiple servers to connect to APNS and send notifications? If so, is there a limit on the number of servers which can send notifications for a single application? I can't find any details about this on the Apple site (e.g...

iPad app strange memory behavior

I have a quite a big iPad application with about 20 xib's about 50 images. It has a login view and until its login page it loads only the images and language resources in to memory. When I load the application and after login view loaded it consumes about 40 MB's. Only the login view is in memory at that time. I noticed this memory from ...

3D Programming in Objective-C "Only"

[I'm going to be interviewed for a position, and I don't want to oversell myself...] I can do just about anything in Objective-C (some things need a lot of code) in 2D, but I haven't actually learned any C fundamentals (except as related to Obj-C). For instance, if an Array is not an NSArray I don't know how to work with it. That said, ...

Can UIWebViews create and access HTML5 databases?

I've built an online web app using HTML5 databases and it works fine in Mobile Safari. However, when I view the same site in a UIWebView inside an app, the HTML5 database part of the app doesn't appear to be working. Am I doing something wrong? It seems logical that something inside a UIWebView should be able to create HTML5 databases, b...

how to loop through nsfetchedresultcontroller

Hi guys, in my app I need loop through all my entities in Core Data and I'm using NSFetchedresultcontroller. I'm doing it like this at the moment: NSArray *tempArray = [[NSArray alloc] initWithArray:self.fetchedResultsController.fetchedObjects]; for (MyClass *item in tempArray) { // do something } [tempArray release]; tempArray =...