iphone

Tips for simplifying UI with large data model?

Hello, I'm working on an app for iPhone, and the data model looks a little crazy - 16 entity types. Could you offer any advice for masking complexity like this from the user? I know all these need to be there, but I'm trying to make it look simple, cause otherwise people will not understand. The Tricks I have figured out so far: My ap...

SQLite3: Batch Insert?

Hi everyone. I've got some old code on a project I'm taking over. One of my first tasks is to reduce the final size of the app binary. Since the contents include a lot of text files (around 10.000 of them), my first thought was to create a database containing them all. I'm not really used to SQLite and Core Data, so I've got basically ...

Phonegap - How do i make the statusbar black?

Hiya, Pretty simple one that I just seemingly can't find the answer to. How can i change the iPhone statusbar (thin bar right at the top with the reception/batter etc) from default grey to black in my PhoneGap iPhone application? Thanks, Glen ...

iphone uibutton background color problem..

i want to change the button color when it is clicked .i used [button setbackgroundcolor:[uicolor redcolor]]; but this shows red color only on the four corners of button not on the whole button and also when i use "for state:uicontrolstate...." then the application hangs . is their any way to show some color on button when clicked? [...

CGContextSetLineWidth of varying width around path

In one of my apps, I have a custom drawn semitransparent UIView that I use as a cover on top of another UIView for a special effect. Lower View: Lower View with Custom View on Top: It works, its great on the iPhone where the side margins are only 10 pixels, but now I need to expand the left and right margins to match the row below i...

"Active SDK","Base SDK" and "Deployment Target" confusion

I know iam asking the question asked by many, but still have doubt in this concept. I have set my "Active SDK" and "Base SDK" to 4.1 and "Deployment Target tp 3.0". Will by application run in all device upto 3.0 ? I have one more doubt, while creating the distribution provisioning profile, i should set the "Active SDK" to 4.1 right? ...

Reading samples via AVAssetReader

How do you read samples via AVAssetReader? I've found examples of duplicating or mixing using AVAssetReader, but those loops are always controlled by the AVAssetWriter loop. Is it possible just to create an AVAssetReader and read through it, getting each sample? Thanks. ...

Crash when use SQlite Persistence Object on iphone device

I use SQLite Persistence Object in my App. It's working well on simulator but when i deploy on the device. Sometime it's work, sometime not. My app often is crashed and i got:"Program received signal: “EXC_BAD_ACCESS”." on Debugger Console. In the Debugger i got: #0 0x3153311c in sqlite3_blob_write #1 0x31501b7c in sqlite3_os_end #2...

iphone MapView and annotationView released

hi, my name is TAG. i using a mapview in my application and for each annotation view on the map i download image from webservice. the is that i'm not able to release all space take by the image download after make a research and create the annotation. also when i leave the viewcontroller who contain the mapview. i'm not able to release t...

CGImageRef Leak.

Maybe this a newbie question, but according to my instruments there is a leak there, but im releasing the imageRef. i cant figure it out. its a category function. -(UIImage *)imageAtRect:(CGRect)rect { CGImageRef imageRef = CGImageCreateWithImageInRect([self CGImage], rect); UIImage* subImage = [UIImage imageWithCGImage: imageRef]; CG...

check if a zip file has password-protection, in objective-c

I have used ZipArchive library to zip and unzip files, but it doesn't give a clue about how to check if the zip file is password-protected. I need to be able to check whether a .zip file is password-protected. If it is, I will prompt the user for a password; otherwise just unzip it. Anyone have an idea of how to check this? Is there an...

Proper way of showing/hiding map overlays

I have a custom overlay that trace the user location changes. I want to show/hide the overlay. What's the proper way of doing that? I'm using hidden property of overlay view to show/hide it right now, but it doesn't work very well. When i pan and zoom on the map i see bits and pieces of overlay (even when i've set hidden property to TR...

What should be in a NavigationController

I have a table view which is inside a navigation controller, however besides this the navigation controller does nothing else. So the class is pretty useless. I also have a navigation controller, which has a mapviewcontroller inside, other than that.. it has nothing else. I know the job is important, that it navigates views back and fo...

Why doesn't the compiler recognize the -URLForResource:withExtension method on NSBundle?

I downloaded the code for Apple's ZoomingPDFViewer sample application, but I am unable to compile this application. It's showing a warning for this line NSURL *pdfURL = [[NSBundle mainBundle] URLForResource:@"TestPage.pdf" withExtension:nil]; NSBundle may not respond to URLForResource:withExtension I build using the iPhone OS 3.2.1 ...

Is it possible to target the iPad with the iOS 4.0 SDK?

Using the iOS 4.0 SDK, can I build an application for the iPad? ...

registering for NSNotification crashing my application??

i am playing a movie using MPMovieplayerViewController and i want to register for notifications when the movie stops...i am using the following code to use NSNotification but my application is crashing when the movie stops...i have used the NSNotification in same way earlier when it executed fine.. any idea regarding what i am doing wron...

Add and removing a unspecified number of UIImageviews programatically

My app is a standard casino game where you bet casino chips. When the user taps a chip that chip gets added to the chip pile being used for the bet. I do this by adding a UIImageView on top of (slightly offset to give the appearance of a stack of chips) the other chips (also uiimageviews). UIImageView *addChip = [[UIImageView alloc] ini...

I've heard that I need to submit my iPhone application to PayPal to be passed, but where?

I've heard that i need to submit my iPhone application (which uses PayPal functionality) to PayPal to get it cleared before even sending it to the Apple Store. Has anyone heard of this? If this is the case, where should I go inside my PayPal account to do this? More scarily is while searching for an answer to this on SO, I've noticed a...

How do I build a wiki into an iPhone app?

I want to build an iPhone app that is really a wrapper around a wiki. Specifically, I have some static reference content that can be represented by a hyperlinked set of pages and want to build an app that will provide a nice interface over this content, including search, bookmarking, and annotating. I'm wondering what the best approach i...

Data from TouchJSON getting deallocated

I have an NSArray stored as a property of my class with a retain attribute. I use a NSURLConnection to return me data as JSON. I use TouchJSON to convert it into a NSDictionary object which I store into the array. I'm using this array as the datasource for a UITableView, but after scrolling through the table a few times I get a messag...