iphone

How to implement password protected PDF file in iPhone SDK

Hi all, Is any one have an idea to how to implement a password protected PDF file in iphone sdk. I mean to I need to create a password pdf file from my application.Please help me. Any one's help will be much appreciated. ...

How to convert from NSMutableArray to NSMutableData ?

Hi guys. How to convert from NSMutableArray to NSMutableData ? Thanks in advance. ...

ipad logo while submitting app

Hi I have to submit my first iPhone app. I have tested it on iPod touch and iPhone. While submitting, is it necessary to add the iPad logo. if yes how to do it. my application is a small utility application...and I have not programmed it keeping iPad GUI guidelines in mind for example it doesn't have the landscape layout. how is it nor...

Problem in Rendering images in UIImageView in iPhone programming.

Hello, I've a UIViewController and a UIImageView, on UIImageView i want to flip between 2 images, which i'm not able to achieve. This is the code i've written, plz correct me if i'm wrong. UIViewController* VC = [[UIViewController alloc]init]; VC.view.backgroundColor = [UIColor redColor]; UIImageView* imgView = [[UIImageView alloc]ini...

Is it possible to mask CALayer in iPhone?

I'm trying to mask CALayer with a bitmap image. And I failed masking CALayer. My code is: // 'PreloadViewController layerWithImageNamed' create a layer and set it's contents as specified UIImage. CALayer* title = [PreloadViewController layerWithImageNamed:@"pinkhug_txt.png"]; [[[self view] layer] addSublayer:title]; CALayer* title_ma...

How to access files in interior of an iPhone App?

Hi everyone! I need in a iPhone app to access files that the app is build with(.plist etc). There's an hardcoded way to do this: NSString *appDir = [[[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByDeletingLastPathComponent] ...

Table image not showing, "Pop an autorelease pool" error

hi, I have a UITableView which uses the following code to display an image in a Table View cell: cell.imageView.layer.masksToBounds = YES; cell.imageView.layer.cornerRadius = 5.0; UIImage *image = [UIImage imageNamed:[[color types] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]]; if ( image ) {...

UITableView with sectionIndexTitle bugs on rotation

Hi everyone, I have a UITableView with a sectionIndexTitles, and when I do a rotation, some cells are displayed like if I were on the previous orientation. When I don't have sectionIndexTitles, there is no problem. Is it just a bug in a library, or is there a secret tip I don't know to fix it ? Tank you ...

iPhone sqlite3 - sqlite3_prepare_v2 returns error code 26

I am using an sqlite3 database file in my iPhone App project to read from during runtime. First, for development purposes, I created the file on my desktop with Navicat for SQLite. Reading this file using this code works: NSString *strTest = [NSString stringWithString:@"select tbl_name from sqlite_master"]; const char *sql_test = [str...

AudioQueue recording as float

Hi guys, I would like to have the result from my recording as a float in the range [0.0, 1.0], alternatively [-1.0, 1.0] because of a bit of math I want to do on it. When I set my recordingformat to be in float, like this: mRecordFormat.mFormatFlags = kLinearPCMFormatFlagIsFloat; I get: Error: AudioQueueNewInput failed ('fmt?') D...

Why call autorelease for iVar definition in init method?

Hi, I just familiarise myself with the CLLocationManager and found several sample class definitions that contain the following init method: - (id) init { self = [super init]; if (self != nil) { self.locationManager = [[[CLLocationManager alloc] init] autorelease]; self.locationManager.delegate = self; } ...

How To load scroll view of some place directly

hai to all , I have added a scroll view of content size 320,1000 to my view its working properly and loading with starting content of scroll view. But,now I want it like showing some place of it when its getting load. that is it shows directly some place of it instead of starting of the content ... Help me it is urgent .. I have tried wi...

Ascii art generator for iPhone ?

Hi all, I want to devlop an application for iPhone which will convert the png image present in iPhone to an Ascii image. Any guidance to devlop such an application ? Is there any API/Library available for this ? ...

Application crashes when popViewControllerAnimated is called while scrolling

In one screen I have a custom toolbar with a "close" button in it, and a UIScrollView. In the screen that preceded this one I had pushed the current screen into the navigation stack. I had also disabled the navigation toolbar for a larger display area and so the close button would instead be used to call: - (void)doClose { [self.nav...

How to decode a urlstring in the right way in cocoa-touch?

My encoded string from the server looks like this: "it-strategy%20RZ%20U%20texas". How is it possible to decode this string back to "it-strategy RZ U texas"? I have tried the method stringByReplacingPercentEscapesUsingEncoding: , but I have still the percentages. ...

Converting classes to an library

Hi experts i have created a set of UItableviewcustom cell classes. Now can i group those classes to an static library so that i can include that library in whichever project i want and i can use it. ...

Class properties vs NSArray / NSDictionary

I want a custom class object to hold data and have somehow the feeling that creating about 80 properties is not the best way of doing it. Most of the properties would be bool values, so i'm thinking about creating Arrays (keys / values) or (probably better) a NSDictionary attached to the object for holding the data. Does that make sense...

How to check if there is an image present in the image view?

I am new to iphone development. I want to check for a condition whether the image is present in the image view? I have created a image view such as UIImageView *subview = [[UIImageView alloc] initWithFrame:CGRectMake(10.0f, 6.0f,50.0f, 50.0f)]; How to check whether the image is present in the image view?Please help me out.Thanks. ...

iphone : FBConnect Auto post to user wall

Hi, i want to auto post to a user wall from my iphone applications ( without that "publish" "skip" dialog box ). how i can do that ? ...

IPhone UIView:Is it possible to enable userinteraction only on subviews?

Hi guys, I created a viewcontroller that displays a button which is used to slide a view onto the screen. The idea is to place for instance three such viewcontrollers onscreen, resulting in three buttons at the bottom of the screen providing navigation. The viewcontrollers get stacked, so to the top one is now overlaying the other vie...