I am looking for a way to programmatically (in obj-c) generate a PDF file from a local html file. I am dynamically generating the html from user inputs, I need to create the PDF and send it to the user (via email). I am having difficulty with the PDF generation portion.
I have the code to create a PDF using CGPDFContextCreateWithURL b...
I need a way to get complete hard drive info on OS X, meaning all hard drive model names, SATA/ATA controllers, volumes, disk identifiers, etc. I checked out diskutil, but it doesn't contain SATA controller info, system_profiler has all the information I need but its XML output is not necessarily organized as well as I'd like. Is there a...
See this description?
"The ZoneTag client runs as a background process, monitoring the cell tower to which the phone is currently connected (which provides a rough location) and possibly communicating via BlueTooth to a GPS device, providing much more exact location information (and also providing a mapping between cell tower and physic...
Can someone show an example on how to log in to AIM, then send and receive messages using the IMframework?
Thanks!
...
Hi, I would like to know how to retrieve video format using AssetLibrary and display on uilabel? i read on forum to use ALAssetPropertyRepresentations but im just lost. some help please?
...
Hey guys,
I've got a UISlider in my main view, but it doesn't receive touches at the right end. I thought it could be a pesky view covering it, but it definitely isn't. Has anyone got any other ideas?
...
If I add the button straight everything goes fine. I'd really like to add it inside a view and still be able to click it. Here's the code:
UIView *containerView =
[[[UIView alloc]
initWithFrame:CGRectMake(0, 0, 300, 60)]
autorelease];
UIButton *footerButton = [UIButton buttonWithType:UIButtonTypeCustom];
footerButton.frame = CGRectMake(...
How to parse xml data which have special characters ( ' , " , < , > etc) in iOS? In NSXmlParser's delegate, when it reads special characters ( ' , & ), it thinks this is open new eplement? How can i ignore those special characters?
...
I'm working with an API that returns a JSON dictionary. One of the keys is "Variant Hash", and the corresponding data is an integer like this: -7331108254952843887 or 6209894088655053576. I'm assuming this is a long long value. I'm serializing this data with NSCoder, and I'm not sure which encodeValue: method to use. There is no enco...
For example say I have:
NSMutableArray *array = [[NSMutableArray alloc] init];
NSMutableArray *array2 = array;
[array release];
is this legal? Do I just leave array2 dangling since I already released the object that was taking memory?
...
i am new to iphone development, i developed an app , i strucked with a problem, that is, i want a loading screen with background music , and it should be stopped when the app is loaded.
plz give me any idea , thanku in advance.
...
I'm using a UIPickerView with 2 components (or columns). When you select an item in the first component, the contents of the second component. i.e., let's say that the left component represents a list of colors categories(red,green,blue, etc) and the right component holds the (red1,red2,red3 for red),(green1,green2,green3 for green)and s...
How to validate phone number in objective c?
Please help
...
Hi
is there any way to release rootViewController in UInavigationController and set new view Controller as a root View Controller ???
...
I am trying to control/override the auto-complete feature when a user enters text in my iPhone app.
Specifically I'd like to auto-complete a collection of words I supply. For example let's say a word in my list is Macpapajona. When I type "mac" auto-complete will suggest Macpapajona.
How can I do this?
I understand that I have to use ...
I need to guarantee that the same thread performs various actions at arbitrary times. First the thread needs to initialize a library, then I want the thread to sleep until work needs to be done and upon user input, I need to be able to pass selectors or blocks for execution.
How can I setup an NSRunLoop to sleep after initialization? Af...
can anyone plz send me code for if i want to have different no.of colors in every combination.Like for say for red i have (red1,red2,red3),for green i have (green1,green2),and for blue i have (blue1,blue2,blue3,blue4).if i keep equal no of combinations it works fine.but i dont want it that way...
also if i select like say red and red2 o...
Hi,
I am looking some info about reentrancy, then I encountered about signal and thread. What is the difference between the two?
Please advice.
Many thanks.
...
It could be that recent revisions to GameKit are simply a tech demo for blocks. Or, that the "on return" functionality of certain GameKit APIs is just too inconsequential to deserve a dedicated delegate class, and blocks now fulfill the function of an informal protocol.
Though it feels like a subjective question, perhaps there is a defi...
Hello,
I have to get the current country in the iPhone settings. Can anyone tell me how to get the current country in iPhone application.
I have to use the current country for parsing the RSS feed in which I need to pass the current country.
Please help me out to find the country .
Thanks in advance.
...