iphone

iPad - Appending image/text at the end of PDF

I'm playing with CGPDFDocumentRef on iPad to read and write PDF's. While going through the CGPDFDocumentRef class reference, I found ways to read, search and create a PDF file. Thanks to stackover.com where I found more solutions to what I want. But I would like to know how to append text or image at the end of PDF. Or some other instan...

How to integrate sliding pannel control used in Twitter?

Hi! I want to Integrate Sliding Panel Control Like used in Twitter so i can i integrate it.Give me some idea and Sample code if anybody integrate it.Thanks in Advance. ...

CGAffineTransformRotate starting from a new transform everytime

Hi guys, In my code I have a table, and in my table I have a slider which I transform so that it is vertical. metricSlider.transform = CGAffineTransformRotate(metricSlider.transform, 270.0/180*M_PI); But every time the code gets called to draw the slider, it of course applies the transform on top of the previously applied transform. ...

Play Lengthy video using NSURL in MPMoviePlayerController problem?

Hi I have a lengthy video in server,if i try to play that video in iphone using the code below NSURL *url = [NSURL URLWithString:@"http://somelengthyvideo.mp4"]; player = [[MPMoviePlayerController alloc]initWithContentURL:url]; [player play]; i am facing the following problem. the buffering time is very slow, compare to the video p...

iPhone weird Bug: going back and forth in the navigation hirarchy while uitableview is still scrolling causes freeze

Hey guys, I got this really weird bug which is making me crazy: I push a UIViewController (lets call it tableViewController) which contains a UITableView and therefore conforms to <UITableViewDelegate, UITableViewDataSource> onto another UIViewController (lets call it rootViewController) with: [self.navigationController pushViewContro...

Problem subclassing UIAlertView in an InputAlertView different sizes and position between iOS4 e iOS3

I've got a problem understanding why a subclass of UIAlertView seems to be drawn in different ways in iOS3 and iOS4. My project must work under iOS4 (base sdk) and iOS3.1.3(deployment target). In that project I subclass a UIAlertView for creating an InputAlertView that is similar to the one that ask you pwd when you buy on the AppStore ...

Why are some entities NSManagedObjects and some named after their class?

I've noticed that in my Core Data data model, some entities are (in the top-left panel) have a class of 'NSManagedObject' and some are named after a class (Person, Company etc). There doesn't seem to be any logic in whether the entity has a class of NSManagedObject of Person etc. And my code seems to work ok. So I'm wondering why there i...

Web service in iphone

Hi everyone i am new to iphone development.I am working on an application which required to check and register the user name and password using soap web service.could anyone help me how to do that with that web service.i have two text fields for login.and button to check if the credentials are correct or not. ...

iPhone +NSCoding/NSKeyedArchiver

I Have a small problem with NSCoding and NSKeyedArchiver when persisting my App Settings class and was hoping someone could spot an issue if it's my code, I am relatively new to Obj-C but have plenty of coding experience in numerous languages so the code seems ok to me but... I have an instance class to hold my app Settings, the class i...

How do I obtain information about the pages in a UIScrollView?

I have a run of about 10 different methods, they all pass "page" and "index" between them in order to define a ScrollView with multiple pages. The majority of these methods run within a loop (for each page). I'm working on a way to re-orient and re-position the pages depending on the device orientation. My trouble now is trying to get a...

UIControl: Touch Up Inside work but Touch Up Outside does not

I have an UIView that in front of a bigger UIView, I want to hide that current View when tap on the behind View but I can't get Touch Up Outside event work, Touch Up Inside that View work fine. (The behind View have another controls) Thanks Tung Do ...

changing uitableviewcellaccessory image

Hi, is it possible to change the uitableviewcellaccessory image in tableviewcell?? ...

XCode Static Analyzer: Analyzer skipped this file due to parse errors

I have been able to run the Static Analyzer on my code fine for months. All of a sudden now I am getting the error: <command line>:0:0 Analyzer skipped this file due to parse errors Not sure how to diagnose. The first tile it skips is: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library...

Checking for nil before releasing an object

Is this good or bad practice? if (!theConnection && !receivedData) { // release the connection, and the data object [theConnection release]; // receivedData is declared as a method instance elsewhere [receivedData release]; } ...

UITableView not scrolling smoothly...(iPhone SDK) ..!!

UITableView not scrolling smoothly...(iPhone SDK) ..!! I have implemented UITableView DataSource and Delegate methods in an individual separate classes.(one for delegate and one for datasource) in main program i write only: //assume that all objects are allocated ObjTableView.dataSource=ObjDataSource; ObjTableView.delegate = ObjDelega...

Retrieve an object within an NSArray / NSDictionary heirarchy based on other objects within it.

Sorry about the weird title... all will be explained. Basically I have an array/dictionary structure like this in my app: NSArray { NSDictionary { (NSString *)id; (NSDictionary *)dictionary; } NSDictionary { (NSString *)id; (NSDictionary *)dictionary; } NSDictionary { (NSSt...

How to access controller items in view when created programatically?

Hi - I'm fairly new to iOS programming, I've just managed to make a view completely programatically (no interface builder)...but now I'm wondering how I access the different elements such as a UILabel or UISwitch etc. In IB I'd just connect them up to their respective outlets / ibactions, how do I do it when I've created it the view from...

How to access Object ID Identity attribute

HI guys. Part 1. In the IB under Identity tab you can find an attribute called "Object ID". I can not find a way to get hold of this ID from code. Oh, and I know about the tag attribute but it's not what I need. Part 2. I essentially would like to get the unique object ID for a UIComponent that was touched on the sceen. I already have ...

Extending UIVIewController of my own I got error accessing self.view

I have created a View controller with some methods I need to use often in different aplications. It works like a charm if I use it directly but when I try to create another UIViewController that extend my class I cannot access self.view anymore. This is the init method of the original class: - (id)initWithNibName:(NSString *)nibNameOrN...

Core Animation Image sequence

How would i go about creating an image sequence with core animation. I would like to: add image1 for 1 second then remove image add image2 for 2 seconds then remove image add image1 for 3 seconds then remove CGImageRef image1 = [self getImage1]; CALayer *image1Layer = [CALayer layer]; image1Layer.bounds = CGRectMake(0, 0,...