hi guys , i asked this question yesterday but it doesnt seem to have asked properly so im trying again
in my app im parsing in an xml file , in that file there is a path for an image to download
an in my tableview controler i have this to download the image and display it in the cell
NSURL *url = [NSURL URLWithString:aStory.picture];
...
I apologise if this has been asked before but I can't find the info I need.
Basically I want a UITableView to be populated using info from a server, similar to the SeismicXML example. I have the parser as a separate object, is it correct to alloc, init an instance of that parser & then tell RootViewController to make it's table data sou...
Hi.
In my app, the user is supposed to insert a phone number, which is then displayed somewhere else.
In the contacts application, when displaying a phone number, it automatically appears in the format of the language selected by the user.
Is there a way to do this automatically, or a way to detect the region and then adapt the displa...
Hi,
I want to publish tutorial about how to easily create an UIScrollView on http://www.xprogress.com/ and I just want to check with you guys if the code is alright before I publish anything. Any help will be appreciated and I'll put your name / website on the bottom of the article :)
Thanks a lot :)
Ondrej
header file:
///
/// IGU...
I've programmatically created a UITabBarController that is loaded in my App Delegate like this:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
tabBarController = [[UITabBarController alloc] init];
myTableViewController = [[MyTableViewController alloc] init];
UINavigationController *tableNavController = [[[UINa...
I want to read alias in Mac OS X programatically. When I tried it always read original file.
Any idea how it can be done?
thanks for your all suggestions.
...
Hi,
I've renamed a UITableViewController class in Xcode, which was used as a parent class in a XIB. The Interface Builder still uses the old name for that class and it compiles and works fine. Interface Builder doesn't see the new name of the class and when I try to type in manually, it compiles and gives me an exception at the runtime:...
I have a C++ library I want to add to my iphone project.
In one header file I declare
@interface a
{
cppvirtualclass V;
}
This compiles fine for the iPhone device with Release settings. However it refuses to compile for the Simulator with or without debug info.
It give the error
error: type 'V' has virtual member functions.
Is...
Is it possible to order an NSMutableArray where it's values are NSStrings? I'm looking to order alphabetically. Thanks
...
How can I programmatically change the keyboard layout in Cocoa?
Assume I have, say, two active ones "Estonian" and "U.S." in the System Preferences (i.e. those two layouts visible in the keyboard layout menu bar).
So how would I read that those two are available, and how would I programmatically change between them?
...
Hello guys!
I am creating a MyOperation object (inherited from NSOperation) and add to a NSOperationQueue. Then I am doing KVO on MyOperation.
I am using this method
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
to get a value from MyOperation if it is fi...
I have general app model, after was released any body can do plug-in for it, this plug-in can determine new db parts which merged with my general db. After some time i 'll release new db version^ and plug-in writers may release new version of their dbs. So i need map old version of merged db into new version. How i can do this?
...
I am a little concerned about building up a large amount of autoreleased objects on the iPhone. My application is only simple so it should not be an issue, but I just wanted to check that methods (like below) are correct and acceptable
-(NSNumber *)numberFromCore {
NSNumber *removedNumber = [[dataCore objectAtIndex:0] retain];
[...
Hi,
I am trying to create a number dialing text field, that is, a text field that works in conjunction with an NSStepper sitting next to it.
The text field should display floats and allow the user to use the scroll wheel to adjust the number it is displaying as well as the up and down arrow keys to the same effect.
It should also swit...
Hi, i'm new with iPhone developpement and i try to lunch a UIviewController when the user pressed a button witch will allow the user too send an email.
So my AppControler is a NSObject witch contains a UIWindow and a UIViewController* myViewController
When i detect the click on the button i create this:
MFMailComposeViewController *p...
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....
Hi,
I'm relatively new to Objective-C + Quartz and am running into what is probably a very simple issue. I have a custom UIView sub class which I am using to draw simple rectangles via Quartz. However I am trying to hook up an NSTimer so that it draws a new object every second, the below code will draw the first rectangle but will never...
This class I'm working with has three instance variables I'm interested in, NSmutablearrays xArray yArray and zArray, there are also other NSmutablearrays, a, bArray and c.
I just added accessors
- (NSMutableArray *) xArray {
return xArray;
}
ditto for y and z.
However, it's returning yArray, zArray and bArray for some reason.
Why ...
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...