Hi,
I've got an UIScrollView and in it different images(about 30). I'd like to make it possible, when user reaches the last image to show the first one after it and so on. And I want to implement the same feature with the first image(to go to the last one).
I'd like to loop the images smoothly that user won't even notice that he is maki...
I'm making a sectioned table with fetched results, but am having a hard time getting custom sections worked out.
Normally one would just have an attribute to sort by, and use sectionNameKeyPath: to generate the sections. But my sorting attribute is calculated on the fly, and I can't seem to get the fetchedResultsController to use it cor...
How to know how much pixels my text is taking in a UILabel ?
I want to insert a small picture in between text.
Can be usefull to adjust my label width.
...
I have a UIView subclass that instantiates three sibling sublayers of its layer. Two of the sublayers have their content set to images files; and the third has a graphic drawn in the
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx
method. The problem is that my drawing layer always appears behind the image layers. I...
Imagine a UILabel, which is 200 pixels wide and 50 pixels high. The label has text inside, and the label makes the text smaller so that it fits into the label. But now, how would you get the size of that UIFont how it is visible in the label? Lets imagine the font size was given with huge 100, and the label squeezes it down to 15. And th...
I need a representation of µ or "micro". That funny small u with the long tail on the left side. Maybe you can see it here: µ
Some weeks ago I was reading in the docs, that it's a bad idea to type any special characters into the source code. So to prevent problems, could I encode that special character µ somehow like web folks do with ...
Hi Everyone:
I am wondering how I can create an outer glow effect outside a UIView on the iPhone, kind of like when clicking a regular NSTextField on the Mac.
Thanks for any help!
...
Many iPhone code samples (from Apple, etc.) include code like this:
- (void)viewDidLoad {
CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame];
// add the top-most parent view
UIView *contentView = [[UIView alloc] initWithFrame:applicationFrame];
contentView.backgroundColor = [UIColor blackColor];
self.view = contentView;...
Since KVC is used to set outlets on the iPhone, there are 2 methods (that I know of) to make sure you've properly handled memory management.
Specifically, I am referring to this article written by Aaron Hillegass.
My question is which method do you use and what is your reasoning?
Release all your outlets in dealloc
and viewDidUnload ...
Howdy,
I have a UITableView where in some instances, certain sections have zero rows. My goal is that when this is true, I don't want any wasted space in the table view, it should look like there's no data.
The problem I'm having is with the header and footer for the sections, which are showing even if there's no row and despite me ove...
I've a UITableView and I populate data from a service. When the number of rows is higher than what could be displayed on the screen, I'm able to scroll the table. But when it's less (say 1 or 2), I'm unable to scroll (in the sense, the bouce effect doesn't work making the UI appear odd).
I think this should be fixed by some IB checkbox,...
I have a new iPhone app that has the following (and only the following) UIView heirarchy:
UIWindow -> UIScrollView -> UIViewSubclass
The UIScrollView is the view of a UIViewController. In UIViewSubclass I want to be tracking and responding to touch events and have set up the "standard four" handling routines therein. Under the Simulat...
I'd like to be able to give my views short names for display on the tab bar, and longer (more descriptive) name when the same view is linked to in a table view. The reason is that longer names nudge up against each other on the tab bar. In a table view, there's more horizontal space, so I want to use more descriptive titles there.
Norma...
Hi all!
I have an UIPickerView with 3 components populated with 2 NSMutableArrays (2 components have the same array).
A tutorial says:
//PickerViewController.m
- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
NSLog(@"Selected Color: %@. Index of selected color: %i", [arra...
The parentViewController property of UIViewController is readonly, but I am nesting custom view controllers and would like to use this property.
However, since it is readonly, and I found no other way to set this property, my quesion is: how do I set it?
Obviously, UINavigationController can set the property somehow in -pushViewContro...
I want to know when a user is touching the screen but not moving. Doing it in a pseudo fashion is simple enough - I know how many touches I have just by using touchesBegan and touchesEnded, but the problem is that only touchesMoved sends events. No events are sent if you aren't moving. This is being used to have a nice sliding scroll - y...
does the code for checking network availability works well with 3g.(provided it works fine with wifi and 2g). Whether i should send the message to the destination and then show the error or first check for network availability.
...
Hi all,
I am getting an "sqlite3_exce read only data base" error while inserting or updating data into table.
Because initially I have to create number of tables in data base & insert lots of data into it, so I create a one dummy application which create "database.sql" database,create Table & it insert data into the tables.
Now ...
I'm having trouble with a snippet of code. I'm trying to add an instance of CLLocationCoordinate2D to a NSMutable array using the addObject method, but whenever the line is executed, my app crashes. Is there anything obvious wrong with this code?
The crash is on this line:
[points addObject:(id)new_coordinate];
Polygon.m:
#import "P...
Hi!
I have an UITableView and I want to populate it with data from this page: http://tvgids.mobi/gids/ned1.php
I have this code:
NSURL *urlll = [NSURL URLWithString:[NSString stringWithFormat:url]];
NSString *test = [NSString stringWithContentsOfURL:urlll];
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"LOL" message:t...