Hi Everyone,
I am working on adding a custom accessory view, (a button) to a UITableViewCell, and I need it to tell the table view when it is touched, but I can't figure out how to communicate to the table view what button was pressed. Ideally I'd like to somehow call a function like this:
[controller tableView:view didSelectCustomButto...
I'm getting some data from the web service and saving it in the core data. This workflow looks like this:
get xml feed
go over every item in that feed, create a new ManagedObject for every feed item
download some big binary data for every item and save it into ManagedObject
call [managedObjectContext save:]
Now, the problem is of cou...
I'm overriding the drawRect: method in a custom UIView, and I'm doing some custom drawing. All was going well, until I needed to draw a PDF resource (a vector glyph, to be precise) into the context. First I retrieve the PDF from a file:
NSURL *pdfURL = [NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathCom...
In the following code:
//anArray is a Array of Dictionary with 5 objs.
//here we init with the first
NSMutableDictionary *anMutableDict = [[NSMutableDictionary alloc] initWithDictionary:[anArray objectAtIndex:0]];
... use of anMutableDict ...
//then want to clear the MutableDict and assign the other dicts that was in the array of dic...
I'd like to "Stretch" a UIView to the right side, meaning increase it's frame.size.width by foo pixels and at the same time decreasing it's frame.origin.x by foo pixels, using [UIView beginAnimations] syntax.
However, if I do that, when the animation begins the view immediately resizes, and then starts the animation for the origin.
CGRe...
hi all,
i have created an iPhone application with a view based .. the problem is i want to load a table view on click of button how can i do it?
i tried..
initWithNibName:@"xibfile" bundle:[NSBundle mainBundle]...
but table view is not loading wat to do?
...
I have two dates in format(MM/dd/yyyy hh:mm:ss:SS). For the both dates I have converted the two dates to strings by using (stringFromDate) method. But I could not get the difference between them and show them in my console. Please give me an idea how I should get it?
Thank you.
...
Hi,
I need some inspiration on how to build a nice progress bar for the iPhone.
What I want to build is a custom progress bar, as I've drawn here:
My approach up to now is to use a PNG (gray in the figure above) with a transparent rounded rectangle. Through this rectangle, users see the moving bar. It would be nice to draw this bar ...
When looking to get data from a web page whats the recommended method if the page does not provide a structured data feed? Am I right in thinking that its just a case of doing an NSURLRequest and then hacking what you need out of the responseData(NSData*)? I am not too concerned about the implementation in Xcode, I am more curious about ...
Coming from a C++ background, one thing that confuses me about Objective C is the fact that you can add a method to a class without actually specifying it in the class interface. So I had a barrage of questions:
Why would someone choose to not add the method in the class interface?
Is it simply because of visibility?
Methods without ...
Hi,
I would like to create my own data format for an iPhone app. The files should be similar structured as e.g. Apple's iWork files (.pages). That means, I have a folder with some files in it:
The file 'Juicy.fruit' contains:
Fruits
---> Apple.xml
---> Banana.xml
---> Pear.xml
---> PreviewPicture.png
This folder "Fruit...
I am having trouble over simply assigning a value to a UI Button:
//Assume rect is defined
rect = CGRectMake(13, 10, 48, 48);
profileButton = [[UIButton alloc] initWithFrame:rect];
profileButton.buttonType = UIButtonTypeCustom;
I am getting "object cannot be set - either read-only property or setter found" when trying to assign the bu...
I have two sprites. Both should animate. But sprite1 should animate first and after completion of the animation of sprite1, sprite2 animation should start. Can I say to a sprite to run from a certain time and end at a certain time ? This is my problems. Please explain how can I do that.
Thank You.
...
[sessionController.currentSession addObserver:self
forKeyPath:@"sessionState"
options:(NSKeyValueChangeSetting)
context:NULL];
This doesn't seem to be working.
The class where this code goes knows about the sessionController and has access to th...
I try the following code, but it doesn't work.
[helloToolbar setBackgroundColor:[UIColor clearColor]];
...
I am adding a UITextView to a UIView programatically. The UITextView should have a clear background from the get go, but the background is animating from white to clear. How do I prevent this animation? Here is my code:
UITextView *localTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 230, 60)];
localTextView.opaque = NO;
...
Hi, I'm working on a project and need to create a screen similar to the iPhone home screen:
A scrollview with multiple pages
A bunch of icons
When not in edit mode, swipe through different pages (even I started the touch on an icon)
When not in edit mode, tap an icon to do something
When in edit mode, drag the icon to swap places, and ...
hi all,
i want to used the particular fonts for my application. but i don't how can use that font that are in the iphone sdk library.
Any idea how can i do this.
By the way i want to use hindi and punjabi fonts in it.
thanks
Deepika
...
My problem is, I did coding for a sprite. It should change it should change it's image from( 1, 2, 3). It should look like count down time to start a game. 1, 2, 3 are 3 png images. But the images are not displayed in equal intervals of time. I mean time between (1 - 2), (2 - 3) is not same. It is random. Please help me with my problem. ...
In my app, I create view controller objects as I need them. When a view controller goes away, I get rid of it by calling -removeFromSuperview on it's view and then set the retaining property to nil.
That way my app uses very low memory all the time. But there's a problem: I have heavy animations going on in some view controllers, and ev...