I created a universal app for the iPhone-iPad. I'm only working on the iPhone part at the moment. In the header file for the view controller for the iPhone one, I import the adbanner header and create an adbannerview variable with a matching property. I don't make it in the nib file but rather check at run time if the class exists, if it...
Okay so i have a very basic app with a view in it with one button. i have the controller set to only allow landscape. My problem is that after it is initialized, and then i click my button (which only has a log statement) , is different than the log statements i have at the end of my init.
I start the app in landscape mode on my simul...
I have a simple countdown timer that updates a label every second. How do I keep state or the illusion of it when hitting the home button or when the app gets put in the background?
...
If I have a NSMutableArray:
NSMutableArray *principalTable;
and I have a other NSMutableArray:
NSMutableArray *secondTable;
and I do this:
[secondTable addObject:@"string"];
[principalTable addObject: secondTable];
[secondTable removeAllObjects];
The principalTable has 1 object, but this object has nothing inside. So my questi...
I need to check if a file exists on my server without using cache. The methods I have used are all returning a 200, even if the file does not exist, so I can only assume there is a cache problem, or theres a problem with my code.
Heres my code: for arguments sake..the URL is changed in this example, but the url is correct in my code.
N...
Hi
I want to rotate a uiimageview by roughly 10 degrees left/right but have a smooth animation, rather than a sudden turn which I see using:
player.transform = CGAffineTransformMakeRotation(angle);
Any help appreciated, thanks.
...
So i have an app that is not so much a webapp but more uses UIViewControllers and UIViews for most screens. On one particular controller i have a UIWebView control that only occupies a small portion of the UIViewController screen real estate that i load html from a web service as a string.
[self.webView loadHTMLString:marketingBlurb ...
Hi there,
I setup in IB in portrait mode my main view (for iPad). I have a toolbar, a map view (x=0, y=44, w=768, h=774) and a footer view (x=0, y=818, w=768, h=186).
When I rotate the iPad, I want the map to stay on the left side and be resized vertically to fit the view (x=0, y=44, w=756, h=704) and put the footer view on the right s...
I have a iphone app where I want to present one of the views modally in landscape mode only and have set the code below its view controller. All works fine on the iphone (its intended platform), but when run on the iPad for demonstration, the left hand edge of the landscape view is truncated by approx 10 pixels. i.e. it looks like the di...
So I have an iPhone app which should aid the user to find a convenient walkway from his/her own position to a given destination. As I have learnt, MKMapView does not provide an easy way to infer a preferred walking route from A to B.
I can live with terminating my own app and launch the native map application on the iPhone, but in that ...
I seem to have a bug because I'm using -[AVAudioSession setActive:withFlags:error:] in an iPhone project that is for 3.0 - 4.0.2. So I guess I need to put one of those #IF lines in, so I can get it to do different things based on the OS version... But I can't find out how to do it.
Can anyone help please? Thanks! :)
...
hi,
in my resources directory i have a file called lsf.plist
i want to load this file (dictionary) but i always get null as content of the file. i am using the following code. i've verified that the file is in the app after the build.
self.path = [[NSBundle mainBundle] pathForResource:@"lsf" ofType:@"plist"];
NSLog(self.path);
self.l...
Hey,
I'm loading a website's html code using NSString - NSString*webViewText = [NSString stringWithContentsOfURL:[NSURL URLWithString:[self getCurrentURLFromWebview:browser]] encoding:1 error:nil]; and I'd like to extract the RSS feed from them, but I got a few questions.
From what I know, most feeds are included in the website as such...
hi,
I have an app very similar to address book of iphone. The entire search and index stuff is implemented using the searchdisplay controller. The problem is, from the search results when i click some cell, it actually loads a new screen and while pressing back and going to home tableview screen the index is shrinks
The possible reason...
Thanks for your help on this one.
I am pulling a NSDictionary from a plist in my main bundle and am having troubles. Here is the code:
- (void)viewDidLoad {
// Pull in FAQ from Plist
NSString *strFAQPlist = [[NSBundle mainBundle] pathForResource:@"FAQs" ofType:@"plist"];
dictFAQList = [[NSDictionary alloc] initWithContents...
Hello,
Is there any way to make it so that the user cannot swipe-to-delete items? I can't find this property anywhere!!
This is Objective-C xCode iOS
Thanks,
Christian Stewart
...
I'm designing am HTML 5 WebApp -- will use the local db storage, etc. It is targeted for AppPhones (iPhone and Android), and HTML 5 browsers. (IE and old browsers will get the old version of the site.)
Questions:
Is there a max download size for iPhone or Android native browsers?
Any limitations with PC-based browsers?
I also plan to...
Hello. Quick question, hopefully I am just missing something simple. Ok I have one class that holds a pointer to another; MainMenuClass and NormalGameClass. Inside of the MainMenuClass I do the following.
m_NormalGame = [[NormalGameMode alloc] initWithNibName:@"NormalGameMode" bundle:[NSBundle mainBundle]];
m_NormalGame.delegate = sel...
Hello, I have file test.pdf in my Application Bundle. I run test in iPhone Simulator (iPad) and I cannot get the CGPDFDocumentRef populated. Am I going crazy or what?!?
here is a piece of code from the sample application made especially for this (ViewController class):
- (void)viewDidLoad {
[super viewDidLoad];
// below code to...
I have an Objective-C method which uses some x and y values from an image: image.center.x and image.center.y. I want to store them away every time this method is called, so I was hoping to use an array.
How can this be done? I suspect using an NSMutableArray?
...