Suggest a easy way to read the contents of a file in a string and display the contents using objective c language.
for example if there is an source.rtf file which contains
[name]lohith[/name]
[age]22[/age]
The program shld read the contents of this file into NSString object and display the contents in the following format:
name=...
Can somebody help me with this? How may I upload live feed onto my application? Where can I get currency feeds for all currencies?
...
Hello guys,
I have following problem:
I have built a tabbar application with 4 tabs. I want to pass a object/variable from the first tab controller to the third one and initialize this controller with the corresponding object.
I've already done some research. The best way, corresponding to a clean model approach, would be to call som...
I have a mainwindow.xib which has a tabbar controller. The first tab bar has a view, that loads from "View1.xib". In my View1.xib, I drag the UI element on it. It has this in .h:
#import <UIKit/UIKit.h>
@class View1Controller;
@interface View1Controller : UIViewController {
IBOutlet UIView *view;
IBOutlet UIButton *startButton...
I want to fix the axes so that they are always to the left hand side and bottom of my plot space. My current implementation is not enabling userInteraction so no need to worry about scrolling.
// Setup plot space
CPXYPlotSpace *plotSpace = (CPXYPlotSpace *)graph.defaultPlotSpace;
plotSpace.allowsUserInteraction = NO;
// Axes
CPXYAxisSe...
Hi,
I'm getting text from Internet and it contains html entities (i.e. ó = ó). I want to show this text into a custom iPhone cell.
I've tried to use a UIWebView into my custom cell but I prefer to use a multiline UILabel. The problem is I can't find any way of replacing these HTML entities.
...
Hi,
I would like to know if there is any difference between calling [super viewDidUnload] before realeasing properties or after it.
Thank you!
self.webView = nil;
self.fullText = nil;
[super viewDidUnload];
or
[super viewDidUnload];
self.webView = nil;
self.fullText = nil;
...
I have a class which uses resolveInstanceMethod to dynamically implement methods.
When I call the dynamically implemented methods from other parts of the code, the compiler emits a warning that the object may not respond to the selector. I would like the compiler to not emit such warnings for this class, but I don't want to suppress war...
The debugger threw me this error
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
this is my code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = nil;
NSString *text = nil;
NSInteger secti...
Hello guys,
I'm looking to find a way how to identify a non responding (not zombie) process programatically. I find some information to check TH_STATE_UNINTERRUPTIBLE status but there was some discussion that it's not the right way. Any ideas?
...
I want set interfaceOrientation in one UIView as LandscapeLeft and Portrait in other UIView. How can I do this?
Or maybe change view to new, that designed for portrait on rotating iphone in this mode? how?
...
I would want to create a custom tableviewcell which should have a different appearance than the default implementation. For this I subclassed the tableviewcell and want to add a label, textbox and a background image. Only the background image seems not to appear.
Maybe I'm completely on the wrong track here and maybe subclassing a UItabl...
I'm pretty new to iPhone Development and running into troubles with memory management.
I built a Multiview Application with this structure:
Main Menu - Preferences - Subview with UIPicker Item.
The navigation is done with a Navigation Controller (Push/Pop view to/from stack).
Everything works fine. But if I'm switching about 20 times...
Guys,
There is a way to get a view controller reference from a UIView object? I need something like this:
MyParentViewController *myParentViewController = [self.view.superview controller];
Thanks in advance.
...
I have an XML documment that I want to load for the iPhone, do I need to convert it to a plist first ? if so how ?
The xml document has the following code ( for 1 chapter)
<toolTipsBook>
− <chapter index="1" name="Chapter Name">
<line index="1" text="line text here"/>
<line index="2" text=" line text here "/>
<line index="3" text=" li...
Hi there,
I'm pretty new to Objective-C and even C in general here, so please bear with me. My main goal is to display my NSMutableArray of CGPoints (via NSValue) with glDrawArrays(GL_LINE_STRIP, 0, points);
I noticed that cocos2d requires an array(?) pointer *poli like so:
void ccDrawPoly( CGPoint *poli, int points, BOOL closePolyg...
Hi There,
Originally, my application was crashing do to BAD_EXEC_ACCESS. I turned on NSZombieEnabled, that output is below. The crashing is extremely inconsistent, If it crashes, it always crashes in one of three places, but it doesn't always crash when passing over those lines of code. I.e. sometimes it crashes at one of those places w...
Hi,
I store some dates in my NSMutableArray, I want to retrieve them and change the format.
For the moment I do this:
NSDate *myDate = [self.dates objectAtIndex:0];
NSLog(@"myDate:%@", myDate); // 2010-03-02
NSDateFormatter *formatDate = [[NSDateFormatter alloc] init];
[formatDate setDateFormat:@"MMMM d YYYY"];
NSString *newDate = [f...
I am receiving this error. I have no clue as to why it would be called, and google didn't really help, any suggestions?
-[UIWindow endDisablingInterfaceAutorotation] called on <UIWindow: 0x4e0ec50; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x4e0f9e0>> without matching -beginDisablingInterfaceAutorotation...
I'm making an app that allows you to browse through pictures from a website. I'm currently downloading the images using:
UIImage *myImage = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:url]]];
which works great, but can be time consuming. I start off by downloading 20 images, but I can't do anyth...