iphone

iPhone: How to Tell Which Scrollview Calls the Delegate Methods?

The answer to this is probably right under my nose, but I am not seeing it. Maybe someone here could help. I have a scrollView that allows for vertical scrolling. I set it up: [clefScrollView addSubview:clefView]; [clefScrollView setContentSize:CGSizeMake(clefView.frame.size.width, clefView.frame.size.height)]; clefScrollView.showsVe...

Explain "speak here" app for loop?

for(LevelMeter *thisMeter in _subLevelMeters){ { xxxxx } I am new to iphone development.I am doing research on voice recording in iphone .I have downloaded the "speak here " sample program from Apple.I came across the above code in the sample program.I cant understand the for loop.LevelMeter is separate class._subLevelMeters is a NSAr...

Alternative for sizeWithFont: method

Hi! I have a class which work is to parse a text into several pages. I use sizeWithFont: method to identify when one page ends and another starts. But unfortunately since the amount of text which needs to be parsed is pretty big, whole operation needs to be performed on a background thread (takes several second to complete). And therefo...

Why do you use an underscore for an instance variable, but not its corresponding property?

I am new to iphone development.I am doing research on voice recording in iphone .I have downloaded the "speak here" sample program from Apple.It consist of LevelMeter.h file, in which @interface LevelMeter : UIView { CGFloat _level, _peakLevel; } The property are set as @property CGFlo...

Iphone - How to align the text justified (newspaper like) in Interface Builder

Is it possible? Align the text fully justified? Does anyone know any hack or Interface Builder plugin? Thanks! ...

iPhone Development Developer Program and a Client

Note: I have given up on compiling iPhone Apps without a developer certificate for the SDK 3.x... for now. But it wasn't for a lack of trying. Anyway... I work for a client who will will be making iPhone Apps but will not deliver them through the AppStore for the time being. I will be testing and deploying iPhone apps to a device I own,...

Monotouch - add event to iphone calendar from my app

hey is it possible for my app to programatically add events (with permission from the user) to the iphones calendar? cheers w:// ...

iphone ABNewPersonViewController seems to not be responding to delegate

Hi guys I'm halfway through implementing a very basic 'Add Contact' Button. I am calling the 'Add View' using the code (via a linked UIButton, that works) : - (IBAction)showAddContact { NSLog(@"Hit showAddContact"); ABNewPersonViewController *newPersonViewController = [[ABNewPersonViewController alloc] init]; addContactNavControll...

How can I load this XML data into Xcode ?

Ok, so I've finally decided on how to load my data I'm going to go with loading my book data as an XML file. The problem is that I'm not too sure on where to start, I've heard terms such 'parsing' but dont know how exactly it fits in. I have added the code below if someone could give me a start in the right direction I would really app...

Is it possible to have a "touchesBegan" on a UITableViewCell?

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { touchStartTime = [event timestamp]; } -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { NSTimeInterval touchTimeDuration = [event timestamp] - touchStartTime; } touchStartTime is defined at class level. Any idea why this won't recognise the tou...

IPhone FIlewrappers and document packages?

Suppose I have an model object class Box. In my Box class I add images references (png), audio (mp3) etc... Rather than store them as NSData it seems better to reference the paths to the files...to save memory. I would like archive this Box class. On the desktop we would use Document Packages (NSFilewrapper). But this class is not part ...

Can Hacker Get My Code through Ad-Hoc Files?

If I send out Ad Hoc distributions of my App, is it possible for someone to hack the included files and get my code? I know it is compiled, but that Ad Hoc folder has a lot of stuff in it. ...

Resize Image to x mb

Hi Is there a way to resize an image (Taken from the Camera or UIImagePicker and saved to a temp folder) to 1mb? Maybe calculating the pixels and than resize it to the calculated pixel size, but dunno how to resize.. big thanks ...

Could someone please show me how to create a CGPattern that I can use to stroke a path with an image?

I want to stroke a path using a .png that I have but I just don't know hot to make a CGPatternRef. ...

How do I get a login screen on an iPhone app (using tabBarController)?

Hi all, I am developing a web app (using rails) that I will be launching within a week. I've "jumped the gun" and started working on the iPhone app for the site (I'm new to iPhone development). Using the peepcode iPhone screencasts and the expense/budget demo app from clarkware I've been able to get things going (using ObjectiveResource...

iPhone - Sort UITableView by Array Index

I have an UITableView set up with a NSArray with 10 indexes. Right now, the first cell on the uitableview is the first index, the second cell is the second index, and so on so forth. Is there any way to make it so that the first cell displays the latest index? Maybe through some code in the uitableview delegate because I am adding data t...

ToDo-App Checkmark

Hey, each todo app has a empty box on the left handside, when you touch the box, it changes to a checked box. When you tap it again, the checkmark disappears. I think everybody knows what I mean. As you see it here (right): How would I realize something like that ? Is it a UIButton ? I'm working with Core Data, how would I save the s...

iPhone NSKeyedArchiver - the data saved with this class persist after app update via AppStore?

Hello, I am a newbie in the iPhone dev and I want to know if I will save some data(NSSDictinary) with NSKeyedArchiver, tis data persist after an update process of my app via AppStore? Let's say that I want to save user an pass for my app and probably this information will be saved into the app folder.If I will update the app via AppStor...

iPhone Distribution Build Out of memory failure?

I keep getting an out of memory failure when I try to do the distribution build of my app. The app only gets up to a max of 12 megs of real memory when testing it in Instruments. Why is this happening? My app folder is only 18 megs without the build folder in it. Turns to 80 megs with the build folder. But this doesn't seem like a l...

Code execution prior to loading an url from an iPhone

If you call: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://test.com"]]; it seems to automatically quit your app -- bypassing the dealloc, viewDidDisappear, or any other functions. Is there a way to put any code between this call and the Safari (or Phone or Email) launch, without having to put a timer before...