I used the below code to load a webpage. Everything works fine, but I want to stop the
network activity indicator after completing loading the webpage. How can we know that
the webpage is loaded completely.
Anyone please help.
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = YES; // to st...
Hi,
I'm using the iPhone facebook connect package.
How do I prepopulate the "publish to feed" example or take out the message field?
Something like this one http://www.burnthebox.us/mobile/iPhone/products/disconnect/instructions/images/DisConnect_FB_Publish_Story.png
(The default in the example has an input text field)
Also what woul...
I have a view controller that can fetch many different types of entities from my MOC. How can I tell what the entity is for an object of the type NSManagedObject?
...
Is there an easy way to recover the app purchase date? Or must I save it myself the first time an app is opened?
...
navController is class of UINavigationController, I add it to a view whose controller is uiviewcontroller1:
[uiviewcontroller1.view addSubview:navController.view];
Now, my question is whose is the navController's parentViewController?
(uiviewcontroller1 != navController.parentViewController) is true?
...
Hiya,
I'm pretty new to developing with Cocoa Touch/XCode and I came across a problem.
I'm making a sort of RSS reader for a newssite and I have 5 views of tables navigated with 5 tabs in a TabBarController. If someone selects a newsitem I want another view to open showing the complete newsitem. My problem is that it won't work.
This ...
In the demo http://www.youtube.com/watch?v=TQ2EZ_tWsGc at about :22, he clicks the bottom tabbar and a new view slides up. It has three tabs at the top.
How do you get the three little tabs working in the "Find car by" view?
Also, how did they create the little tab where the "Find car by" text sits? It is sticking out on its own from...
In an iPad app, I'm using a custom subclass of UIView with UIViewController. Here's the view header:
@interface pdfView : UIView {
CGPDFDocumentRef doc;
}
-(void)setDoc:(CGPDFDocumentRef)newDoc;
@end
And here's the controller header:
@interface iPadPDFTestViewController : UIViewController {
CGPDFDocumentRef doc;
}
- (void)...
So, I understand that it's possible to set up in-app purchases for iPhone apps to purchase non-consumables like game levels. I understand the logic behind the purchase part, but what I don't understand is, how can I deliver the new game level.
For example: I build an app that contains the first level and they purchase additional levels....
So, there have been several posts here about importing and saving data from an external data source into Core Data. Apple documents a reasonable pattern for this: "import and save on background thread, merge saved objects to main thread." All fine and good.
I have a related but different problem: the user is modifying data in the UI and...
I have a string of letters and I want to search it for a specific letter.
NSString *word = @"word";
How would I find out if the string contained a letter "w"?
Thanks
...
I created 4 UIButton's that are Custom and Plain in IB.
I added a background image to them and then placed them onto my UIToolbar.
I created IBActions and hooked up all of the buttons
I did not create @property for the buttons, but 3/4 of them appear on my toolbar when I run the app in my the simulator. There is a blank space for the...
I have a UIModalPresentationFullScreen but my UI elements are not showing up properly. I want to define the screensize in IB, but I'm not sure what the size should be?
...
Hi!
I'm trying to set the label backgroundColor of my UITableViewCells and it does absolutely nothing at all. I wonder if there's another way of doing this, so I'm asking!
I tried this:
cell.textLabel.backgroundColor = [UIColor redColor];
cell.backgroundColor = [UIColor redColor];
And it doesn't work, anything else?
Thanks!
...
- (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...
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!
...
Why doesn't the following code work?
MyViewController *viewController = [[MyViewController alloc] init];
[myWindow addSubview:viewController.view];
[viewController release];
As I understand, myWindow should be retaining viewController.view for as long as the window needs it. So why does this cause my app to crash on launch? (commentin...
I am trying to remake a program I have made in C# in OBJ-C.In C# I used streamreader to search the data file for the line I am looking for then convert that line into a string that I can work with.
I have looked at NSScanner but I'm not sure if thats quite waht I'm looking for but I'm by no means a cocoa expert.
All I would like to b...
I've been struggling to get TTThumbsViewController to work with my application's tab bar and navigation. Bit-by-bt, I've solved most of the problems. The first problem is what I see when I get to what is supposed to be a full-screen image view. It is creating a white block where the status bar used to be. See screen-shots...
Any...
I've got a UITableView that is sortable, but that's it. Right now, I have all the cells set to UITableViewCellEditingStyleNone, but this still moves the TextLabel of the cell over to the right by 40 pixels. Is there anyway to get edit mode, and the sort icon at the right, without shifting the TextLabel over?
...