Hi, I've been looking around Google and SO and haven't quite found an answer to my question, or at least a more recent answer.
I have a PDF with hyperlinks/hotspots in it and would like to display the PDF file in my own iPhone/iPad app. When the user clicks on a hyperlink/hotspot I would like the user to be taken to the appropriate loca...
I want to make a function that is always running in xcode similar to Unity's "function Update()". is this possible and if so, how.
...
- (void)viewWillAppear:(BOOL)animated {
app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = YES;
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
}
-(void)webViewDidFinishLoad {
app.networkA...
Hi there, I'm trying to dive into the quite frankly terrible world of unit testing using Xcode (such a convoluted process it seems.)
Basically I have this test class, attempting to test my Show.h class
#import <GHUnit/GHUnit.h>
#import "Show.h"
@interface ShowTest : GHTestCase { }
@end
@implementation ShowTest
- (void)testShowCreate
{...
How can I insert an image in a scroll view, so that I can zoom it.
I am new to objective c.
Any help will be greatly appreciated!
...
Hello ! every one.
I am having number of images with in my application. ( images more than 50 - approximately & it can extend according to client's need )
Each image are very large round about - 1024 x 768 & 150 dpi
Now, I have to add all this images in a scroll view & display it.
Ok, My question is as follows.
According to me there...
I am creating an app that requires the users current time zone. If the device being used is an iPhone and the user has their Time Zone set to automatically change, I think I can be fairly confident that localTimeZone or systemTimezone will give me the correct time zone for the user's location.
If on the other hand the device is an iPod ...
I know this is a fairly contentious issue amongst programmers, but when developing I like my IDE to position the opening curly bracket underneath the method/interface/control declaration, for illustrative purposes: -
This is how Xcode automatically generates skeleton methods with the { at the end: -
-(void) isTrue:(BOOL)input {
if(...
I followed the other questions on StackOverflow and made custom User Templates. Instead of replacing the factory default Cocoa class template, I have to pick a new user template.
The order that is shown in XCode's New File dialog box is:
iPhone templates first (great if you mostly do iphone development)
Second the User templates
Thir...
I want to zoom an image in a scroll view. I used the below code.
All are working fine, but the image is not zooming. Anyone please
help. I am a beginner in iPhone app development.
I had connected the delegate to files manager and set max zooming to 5
I can see the image. But how can I zoom it.
IBOutlet UIScrollView *scrForImg;
IBOutle...
I am trying to use Xcode 3.2 for java tool development. My project has no problem building and shows it built the file build.xml fine and also shows up in file folder fine. When I try to run the .java file, I get the error: "Buildfile: build.xml does not exist! Build failed". Running "ant -find build.xml" in Terminal produces "not found"...
I'm trying to render an in-memory (but not in hierarchy, yet) UIViewController's view into an in-memory image buffer so I can do some interesting transition animations. However, when I render the UIViewController's view into that buffer, it is always rendering as though the controller is in Portrait orientation, no matter the orientation...
I have been an iphone developer for a while, and I have recently been including git in my workflow. I have used git settings found on http://shanesbrain.net/2008/7/9/using-xcode-with-git for my workflow so far.
Those settings tell git to exclude *.pbxproj from merges? Is there a real reason for doing this? For example, when I add a f...
I would like to add a uitoolbar able to slide -in from the top of the screen when some button is pushed. With all the research done this week-end I am still stuck. Please help.
...
I require statistics of CPU Load of my iPhone apps. I am trying to use Instrument to see the CPU Load, but all I see in Instrument program is rendered graphs. I need these statistics data in raw numbers so that I can put all of them on graphs using Excel or Numbers. Is there a way to export these data in such a way? Or do I need other pr...
Hello.
I've working with Visual Studio for a long time and now I'm working with XCode.
On Visual Studio I can work with more than one project at the same time adding them to a solution (imagine a solutin with a windows application project and a library project).
Now I have XCode and two projects: an iPhone application and a static lib...
When viewing images my application hums along nicely with low memory consumption, once I try to watch a video using MPMoviePlayerController memory usage spikes way up, dwarfing the previous memory graph and if I play the video it causes a 'memory warning. Level=1' message. The video files (mp4) aren't even that big, 40MB or so, and it d...
In my .m file I call a method that is inside the same .m file. In the header I have the correct import for the header but I keep getting this alert:
What am I doing wrong? What should I do in order to make this error disappear? I'm kinda lost here :-(
Even if I changed this to:
NSString *path = [[NSString alloc]
initWithString:...
Hello all:
I am developing a simple application which has to send an SMS message from the app itself instead of launching the native Text app.
Here's my action now. What should I change to achieve my desired functionality?
-(IBAction)startButtonPressed
{
NSString *phoneNumber = @"13136296693";
NSString *url = [NSStr...
I see that apple has implemented a max size for the actual application but is there a limit to the amount of data you can store with your application or is it only limited by the amount of free space on the device?
...