While I was going thru the pdf document in quartz 2D, they were saying about getting a page from the CGPDFDocument object. Then the draw the page in a CGContextRef object.
CGPDFDocumentRef document = MyGetPDFDocumentRef (filename);
CGPDFPageRef page = CGPDFDocumentGetPage (document, pageNumber);
CGContextDrawPDFPage (myContext, page);...
I want to get the complete url of selected image from photo library in iphone to NSString.
Is it possible
My code is
NSString * filePath;
UIImagePickerController * picker;
picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrar...
I would like to make a alertView that can show in any where and don't care there is a View or Window.It just like the safe-model alert can show on the desktop which also can accept user input.
The UIAlertView and UIActiveSheet are build upon a UIView or Window.So I didn't need these kinds.I also know the application called backgrouder ha...
Hi,
I have developed an iPhone app where there are four tab bar items and if i press the last TabBar the application should terminate. How to do it in Interface Builder?
...
Hi,
I m building a voice recording application in iPhone. The recorded file is transfer to linux server and it need to be converted to wav file.
However, when I try to convert caf file using libsnd, it gives an error.
Error : Not able to open input file testfile.caf
For testing I converted some wave file to caf using libsnd and vice v...
Hi there,
I'm working on an iPhone app that lets the user draw using GL. I used the GLPaint sample code project as a firm foundation, but now I want to add the ability for the user to load one of their previous drawings and continue working on it.
I know how to get the framebuffer contents and save it as a UIImage. Is there a way for m...
I am trying to render font glyphs at a specific point with some precision, and am having quite a bit of trouble with it.
To begin with, the Text Position Y value never changes, so I cannot get the glyph's height at all. For example, in the following code, the assertion always fires:
CGContextSelectFont(g, "Arial", 32.0f, kCGEncoding...
I want to play the video on iphone locally by storing the video in the app.
how can i do?
...
Hi,
I m the beginner in iphone software development.
I want to make my own customize settings in iphone using objective-C in my own application. In setting UIView i want to perform to set ON/OFF mode of GPS and Camera using UISegment controller/UISwitch.That means i only ON/OFF of GPS and camera setting. I was lot of searching on device ...
Hi
I am using a CGAffineTransformMakeTranslation method to move a ball from one place to other.
But here my question is can i use it to move ball multiple times to different location and then moving back to its original place is right method?
for example i move a ball from pos A(3,3) to pos B(11,15) and then i move it to C(28,67).
Now i...
Is there a way for me to create a UITextView/UITextField* that on getting the latitude and longitude of the current location the texf field is autofilled automatically.
I don't want to use Google Maps database, I already have my own that is customised that contains 1,265 entries.
On getting a location that is not in the database, the...
Hi,
I'm still checking everything out.
I'm wondering what the limitations are if we develop the app using Titanium.
What cannot be done using Titanium, for iPhone and for Android?
What things can only be done using only the the native tools?
I heard that performance could be an issue. How bad is this going to be?
Thank you in advance...
Hello guys.
I have a NSString like that? (in iPhone application)
NSString *xmlStr = "<?xml version=1.0 encoding=UTF-8>
<information>
<name>John</name>
<id>435346534</id>
<phone>045635456</phone>
...
Hello,
How do i get the Direction from compass when i rotate my device?
i have use :
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)heading {
}
method but nothing is detected under heading tag?
i just want to get the direction (i.e) 90N , 180S etc..
need help
Thank you.
...
Apple is obviously very strict when it comes to reprogramming physical iPhone buttons for use with apps, but what about 3rd party bluetooth headsets?
Many of them come with physical buttons, for instance to skip to the next song.
Is it possible for us to program our app so, while it is running, all "SKIP SONG" bluetooth signals (from ...
I found this code to display a modal view:
- (void)add:(id)sender {
// Create the root view controller for the navigation controller
// The new view controller configures a Cancel and Done button for the
// navigation bar.
RecipeAddViewController *addController = [[RecipeAddViewController alloc]
initWi...
I've got an issue with my iphone App and i'm not sure if its an xcode project issue or a code issue (I'm leaning towards xcode project issue at the moment).
If I reset the iphone simulator and build and run my app it works fine. If I then do a build and debug again the app will crash straight away with no meaningful callstack. The app w...
My application is in landscape mode and I use MPMoviePlayerController to play an sample video. It works fine but when I stop the video with the OK button (or if I wait until the movie ends), the orientation automatically changes to portrait.
Is it possible to keep application in landscape mode when the OK button is pushed ?
I use the f...
I have a UINavigationController that has a visible Navigation Bar and Toolbar. When pushing a controller (the same controller), I want to only animate the content portion (with a sliding effect for example), and keep the NavigationBar and Toolbar unanimated/constant. Can anyone offer any suggestions on a clean way of doing this? Thanks...
I have a table with different entries, each with different length. The height of each row should fit, so it can show the whole string.
I use the following code:
//... cellForRowAtIndexPath
if (row == 0) {
cell = [tableView dequeueReusableCellWithIdentifier:@"affCell"];
//if (!cell) {
cell = [[[UITableViewCell alloc] initW...