I've got a scroll view, in which I have an imageview displaying a 960x960 image, but it scrolls to something close to 4x that. I've tried to log the widths of all possible views and everything claims that it's 960x960 (or smaller, I think I logged the screen width once...?)
I need this image to stop scrolling at the bottom right corner...
I have main UIView where I display different data. Then I put a button, which displays subview like this:
- (IBAction) buttonClicked: (id) sender
{
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(25,25,50,20)];
UILabel *newLabel = [[UILabel alloc] initWithFrame:CGRectMake(25,25, 50,25)];
newLabel.text = @"some text";
...
In the iPhone, I have a tableview, and touching the cells, I have one method calling presentModalViewController, and opening another view, with email and this kind of stuff.
When the user press the cancel button, the viewWillAppear method in the previous view is called.
So far, so good. But in the iPad, the viewWillAppear is only called...
Hi
I have run into a bit of a problem. Usually when dealing with UITableView I will build a special
method, configureCell, that builds the cells as the tableView needs them. So cellForRowAtIndexPath queries the configureCell to get a new cell if none is found in the cache.
In the part of cellForRowAtIndexPath that gets run every time a...
hi everybody,
first, i followed this tutorial: three20 github tutorial
i have a memory management problem i think, which crashes my application.
i think, _properties in my postsModel crashes my application.
the first time i launch my application and changing view to my postsTableViewController works quite fine. i created a TTLaunche...
I have been using IB for a while now and have created several projects. Now for some reason the inspector is always displaying (Empty Selection) no matter what I have selected.
...
Hi all,
I would like to ship a configuration profile with my iPhone application, and install it if needed.
Mind you, we're talking about a configuration profile, not a provisioning profile.
First off, such a task is possible. If you place a config profile on a Web page and click on it from Safari, it will get installed. If you e-mail...
I'm not sure why, but my app does not have the zoom in animation that all iPhone apps have when they start up. The screen, which is black, zooms in and then it just cuts to the actual view. It doesn't zoom in the actual view. Is there an option that I'm missing in an implementation file or in the Interface Builder?
Any help is appreciat...
Hello,
I'm writing an iPhone application, one of it's tabs is a twitter feed, i'm parsing twitter xml and putting it nicely inside a table view.
In case there is no internet connection I would like to show cache results of the last time we had internet connection and the tables were updated.
I'm using NSURLCache for that like so:
NSURLR...
Ok, so here's the thing. I've read here and on many other forums how you rotate and scale an UIImage the best way. The conclusion was, it's best to it do with CGGraphics and do an CGAffineTransform etc. with an UIImageOriantationUP. I've even come across some custom code that did exactly that. BUT, my UIImage doesn't respond to any code ...
Hi: Moving rows between sections in Core Data backed UITableView works quite fine after I've implemented a 'userDrivenChange' check in 'controllerDidChangeContent:', as mentioned in the apple docs.
But only when moving the last row of a section to another section I get a NSRangeException. There is obviously a problem when sections get e...
I have two apps on the iTunes store - both implement push notifications. While I was testing sending notifications to these production apps, I noticed that a push intended for app A was titled and opened app B.
Both of these apps are installed on the same phone. I looked in my device table and saw that the device Tokens (and of cour...
My iPhone app keeps crashing, and I've narrowed it down to this one line over the past bloody week:
NSArray *fetchResults = [managedObjectContext executeFetchRequest:request error:&error];
I'm getting the right result from the above, but the app crashes after accessing it (EXC_BAD_ACCESS).
How do I just copy the contents of fetchResu...
I am using the iPhone camera to capture an image and them resizing and adding a rounded corner. I'm having some users complain about crashes and I can't seem to find the problem. Also, the code runs very slow after selecting an image.
Can anyone offer suggestions to improve the method below?
-(void)imagePickerController:(UIImagePic...
I'm trying to set the UIRequiredDeviceCapabilities properties in my Info.plist file. My app requires a persistent network connection. If I look at the definition for the "wifi" key, it says:
Include this key if your application
requires access to the networking
features of the device.
So: does the "wifi" key indicate that I nee...
Currently I've got a class popping up UIAlertViews here and there. Currently, the same class is the delegate for these (it's very logical that it would be). Unfortunately, these UIAlertViews will call the same delegate methods of the class. Now, the question is - how do you know from which alert view a delegate method is invoked? I was t...
Code:
[self.menuList addObject:[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"PropertySubtype2fTitle", @""),
kTitleKey,
publishNoOfRoomsViewController,
kViewContro...
hi, i need to hide the URL bar in ipod touch when the web applcation loaded, i tried all the possible solutions found online including the one found here:
http://www.iphonemicrosites.com/tutorials/how-to-hide-the-address-bar-in-mobilesafari/
and setting min-height in CSS, but it only works in landscape, and in profile mode, it only hide...
I have some methods that are used by several classes. My idea was to put these methods on a general separate file and have this be seen by other classes.
How do I do that in Xcode?
Sorry but I am new to iPhone development.
thanks
...
Is was starting to implement one but was wondering if somebody knows about an already existing NSCollectionView like class for cocoa touch.
...