cocoa-touch

iOS/iPhone SDK: initWithCoder and encodeWithCoder not being called

I'm trying to save an NSMutableArray called queueArray so it can be loaded again after the app has been quit. I used a few tutorials to get me going and this is the code I have come up with. The problem seems to be that "initWithCoder" and "encodeWithCoder" are not being called, shown by no NSLog calls and no stopping at breakpoints. ...

Iphone - Load image from camera roll to UIImageView without UIImagepicker

Hello. Is it possible to load the last photo from camera roll to UIImageView without using a UIImagepicker? I mean retrieve the path to the file or something like that. Thankz :D ...

iphone: coding a data compression or zipping agent ?

I'm creating a simple service for uploading photographs from an iphone to a web server. However, before the requests is sent, I want the app to compress the pictures (custom format or otherwise) in the background before sending it. Any pointers on how I could go about doing this? ...

parsing date works on simulator not iphone??

I have the following code to parse a date from string: NSString * str = @"8/13/2010 1:59:00 PM"; NSDateFormatter * dateFormat2 = [[NSDateFormatter alloc] init]; [dateFormat2 setDateFormat:@"MM/dd/yyyy h:mm:ss a"]; NSDate * orderDate = [dateFormat2 dateFromString:str ]; but orderDate is always coming up null, what am i doing wrong ? Wh...

Refresh iPhone For progressbar

How would i show that the progress bar is working there is no Refresh() in objective-c like there is in .net what would i use for example contactprogress.progress = 0.5; StatusLabel.text = @"Status: Address Found"; How would i refresh the view to show that the progress has changed & show user the StatusLabel status? Thanks Mas...

How can I output tables to a PDF file with the iPhone SDK?

I want to output a PDF using UIKit's PDF creation methods. I see plenty of information on the web about creating a graphic context in a PDF, but I want to create smart text tables whose cells the user can later copy and paste into other applications (Word, Excel, etc.). How do I do this? Thanks. ...

One xib file or multiple xib files

I made a tab bar application that has only one xib file. If you have have made tab bar applications before then you probably know what I did so I don't really have to explain it. I deleted the two xib files and used MainWindow.xib. I just added views to each tab bar button and assigned view controllers to each of them. So now I have a t...

extracting reusable UI parts in cocoa touch - views vs controllers - how should it be done?

Let's say I am designing an iPad app that presents user a screen. The screen contains several "controls" that for the sake of this example can be simple labels with +/- signs that increment/decrement integer value presented by the label, making sure that the value doesnt exceed max number defined for each control (numerical up/down contr...

Navigation-based app + tab bar

I made a tab bar application with several tab bar buttons. Each button is linked to a separate xib file. This works for a xib with a UIViewController and a xib with a UITableViewController. However, it does not work for a xib with a UINavigationController. On the left you can see what it looks like in Interface Builder, and on the right...

UINavigationControl with Image View as root, table views thereafter

All, This is one that should be simple, but since I'm rather new to the xcode IOS 4 developement, I gotta ask: What I need: an Image View with a button that will then display a series of linked table views. This screams (to me) a UINavigationController where the first view is NOT a table view, but the UIImage view. I cannot get this...

Truly bizarre data reported by Leaks using CoreData on iPad

Update 2: Apple responded to my bug report with "We believe this issue has been addressed in iOS 4.2 b1 (8C5091e). Please let us know whether or not you continue to experience this issue with the newly released software by updating this bug report." I guess this acknowledges that the issue is in their code, not mine. I'll update with res...

UITableView Scroll slowly

i got the problem in my apps, i have UITableView and it's scroll slowly, not as fast as the other application, even i didn't create any object or add subview in my table this is my code : - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *searchingIdentifier = @"...

how to access username/password application wide

I'm using the SFHFKeychainUtils which is a wrapper for Apple's Keychain. To query a password I need a username. How can I access username application wide? Use a singleton? Other solutions? ...

UIView build in Interface Builder connected to my custom UIViewController

Hi I was trying to use IB in a slightly different way that I am use to and I can't get it working extending the normal approach I use, when dealing with IB. Instead of making a new UIViewController and have the view XIB generated for me and everything linked together by Xcode, I would like to just build a small (320x40px) View XIB and ...

Call presentModalViewController from NSObject class

In my subclass of NSObject I would like to call something like [[self navController] presentModalViewController:myView animated:YES]; But none of my tries were successful. How can I call a modal view if I'm not in a subclass of UIViewController? Solution: #import "myProjectNameAppDelegate.h" // ... MyViewController *myView = [[M...

Set line height in UITextView

Hello all, I'm already pretty sure that it can't be done with any public API, but I still want to ask: Is there any way to change the line height in a UITextView? Would be enough to do it statically, no need to change it at runtime. The problem is that the default line height is just WAY too small. Text will look extremely compressed ...

Designing view in Interface Builder, but with some logic defined in code

I want to create a simple "control" that will have 4 UILabels defined in it. On one hand I'd like to use Interface Builder to layout my design but on the other hand i'd like to expose some properties that will define contents of each label - is it possible? @interface CompositeView : UIView{ int numberOne; int numberTwo; } @property(n...

Objective-C Testing Frameworks

Are there any tools or plugins for XCode that can generate test cases for your apps? ...

How to use Zombie while debuging iphone application ??

How to use Zombie while debuging iphone application ?? ...

360° panorama librarys for ios

are there any libraries or classes out there to show a 360 degree panorama on the iphone? i found this here: http://code.google.com/p/panoramagl/ but its not up to date and only for old versions of ios. i'm thankfull for any link that helps me to create a 360 degree panorama view on ios. thanks! ...