I am trying to create a pretty lengthy form in my iphone app. I added a scrollView to my view in order to scroll down at runtime. The problem is in interface builder all I see is the regular view with the 420 height.
So how can I add more controls to the form in interface builder? If I could physically add them somehow the scroll view ...
I have been using Flurry.com to capture my analytical data for my iPhone app. I send them custom event information about what is going on in my application (registration/login/etc). I pass extra information with these events. Now I want to access this information and analyze it. How do I do that?
On their website I can see small 'pa...
Hi all,
Firstly i'm not a programmer but I am managing to work my way through developing my own iphone app for my photography business. I store all of my photographs with a 3rd party who make their API available for public use. I want to implement this API into my app.
I've spoken with the 3rd party and they have written all of the c...
I would like to allow the orientation to rotate as per the shouldAutorotateToInterfaceOrientation call to my view controller. However, I'd like it to do so immediately and skip the rotating animation (the one that results in the corners showing the black rotating animation while the entire view rotates.
Does anyone know if there is a w...
- (void)viewDidLoad
{
[super viewDidLoad];
page = 2;
NSString *pathToPdfDoc = [[NSBundle mainBundle] pathForResource:@"2010_07" ofType:@"pdf"];
NSURL *pdfUrl = [NSURL fileURLWithPath:pathToPdfDoc];
myDocumentRef = CGPDFDocumentCreateWithURL((CFURLRef)pdfUrl);
CGRect pageRect = CGRectIntegral(CGPDFPageG...
One of my tab bar's items is UIViewController representing UIScrollView. Once the scroll view is created I need to setContentSize, but I don't know how to calculate size from its controller, considering tab bar area. I would consider to avoid hard coding.
...
I know this is easy in Cocoa. Not sure if it is possible in Safari.
...
In an iPhone app I'm developing, I grab a set of data from a web service, store it in a mutable array for showing in a table, and also store it in core data as backup when there is no network.
My array is initialized in application:didFinishLaunchingWithOptions: as follows
tableArray = [[NSMutableArray alloc] initWithCapacity:100];
the ...
I am seeing dramatic differences in drawing speed depending on whether I transform my context.
- (void)drawLayer:(CALayer *)myLayer inContext:(CGContextRef)context {
NSDate *startDate = [[NSDate date] retain];
//CGContextConcatCTM(context, finalTransform);
CGContextDrawImage(context, imageRect, imageRef);
NSLog(@"%f", [[NSDate ...
I am creating two targets of my app (a free and a paid version) and cannot make XCode use the proper provisioning profile for the debug built of one of these versions. It attempts to use the profile of the paid one for both version, and obviously fails since the bundle ID does not match.
In the 'Get Info' build settings for each target ...
Hey all!
What I'm trying to do is convert an EKEvent into NSData, and then convert it back into an EKEvent.
I looked around and noticed that in order to use NSKeyedArchiver, the class must conform to the NSCoding protocol. I also found that if I was creating a custom class, I could make it conform to the NSCoding protocol by implementi...
Three questions for iPhone developers using Google Analytics within their apps for tracking use of their apps:
Will using Google Analytics cause us to be in breach of the terms and conditions of the Apple SDK 4 for developers?
If the answer to #1 is YES, then what are we -- as iPhone developers -- allowed to use to track usage of our a...
I'm writing a paint app.
When drawing a line in CGContext, the background with the size of the bounding box of the line is always got erased - the underlying lines in that box will be cleared.
How to avoid the background erasing?
...
I'm having difficulties getting a tiled UIScrollView to zoom in and out correctly with pinch zooming. The issue is that when a pinch-zoom occurs, the resulting view is usually not centered in the same region.
Details: The app starts with a tiled image that is 500x500. If a user zooms in, it will snap to 1000x1000 and the tiles will redr...
I have an object which contains several different NSStrings. When displaying this object, depending on another attribute of the object, I will display one string or another. I have a function defined in the object that takes care of deciding which string to display. So, as a simple example:
@interface MyObject : NSObject {
NSString*...
In the targets settings, I set the "Product Name" to be "My first app" (for instance), and this name will be displayed on the iPhone.
But when I upload the app, apple complains that the name the name of app can't contain the space. Can I just rename the app from "My first app.app" to "Myfirstapp.app"? Will that impact on the name displa...
I am a newbie on iPhone development.
I have declared a variable on my .m file like this
#define myFloat 60.0f
Now when I try to use this variable like
CGRect myFrame = CGRectMake(0.0f, 0.0f, myFloat, myFloat);
it says myFloat is undeclared!
How do I do that?
thanks.
...
I have used the Three20 Framework to setup an image gallery in my iPhone App. I am sending in the specific width and height for each image, but when I view the individual images, they load at a slightly oversized size, they are a bit pixelated, and then they focus down to the correct size/ratio.
Most of the images are 300 x 400 and I a...
I am looking to retrieve information from particular webs pages for an iPhone app. What I have in mind is to load the html source code into a string and parse the string for info that I need, but I have no clue how to load a web page source code into a string, or if it is possible at all.
So my questions would be:
How to load an web ...
I have an iPhone app that uses sync services to sync its data with the desktop version, everything is working fine, except for the images.
On the iphone I store an image in the Documents Directory and the path to the file in core data. I set up a transient attribute "image" and checked the sync check box and assigned it as an identity ...