in my viewcontroller's view i need to add a couple of custom UIView's, i do that in the loadView method
so in my custom uiview's drawRect method i add a couple of UILabel's.
in my viewcontroller's view i need to add all those custom UIView's underneath each other but i don't know what their height is
sometimes 20px, 40px, 60px, depend...
We are caching images downloaded from our server. We get the data from an ASIHTTPRequest callback like this:
#pragma mark ASIHTTPRequest callback
-(void)imageDownloadFinished:(ASIHTTPRequest*)aRequest
{
NSString* fileName = aRequest.url.path.lastPathComponent;
[self imageDidArrive:[aRequest responseData] forFileName:fileName];
...
I know that on 3.0 there is a confirmation alert.
I know that on 3.1 there is NOT a confirmation alert.
How it is on 3.0.1?
Is there some docs about it?
Maybe someone can check on their iPhone? (On 3.0.1 of course)
thanks
...
Hey,
I want to enable the user to select a video file from the on-device iPod library (so that I can play it in my own app). Is that possible?
I was thinking on using MPMediaPickerController but I am not sure if it is able to select video files or just audio files.
Any help will be greatly appreciated.
Thanks,
...
I have a set of NSTimeIntervals like this:
NSArray *mySet = [NSArray arrayWithObjects:
[NSNumber numberWithDouble: time1], //
[NSNumber numberWithDouble: time2],
[NSNumber numberWithDouble: time3],
nil];
// suppose that at this time
// time1 = 0.00000
// time2 = 18.3200
// time3 = 21.6500
at some point in my code I want to ...
I've got an imagePickerController which allows the user to take or select an image.
In - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; I would like to trigger opening another modal view to capture the caption. I have a call for that purpose...
-(void) getcaption:(id) ob...
Hi there,
I have code running in an iPhone application I am developing.
Basically, the code needs to load an images and calls:
size_t bitsPerPixel = CGImageGetBitsPerPixel(imageRef);
I noticed that on the iPhone simulator this call returns 24 and the device itself it returns 32.
Is this behavior by design?
Is it somethin...
Hi,
Could somebody suggest a technique or class library to read up on for XML Caching on the iphone?
The biggest lag in my app is the XML being downloaded from the server. If a user views a screen the xml has to be downloaded and parsed and theres a wait of a few seconds. If they leave the screen and come back to it again they have to ...
Hi,
I want to use many bars like this one in my app (i don't know how to name it : the bar that contains "The Early Show" "48 Hours").
Is there a simple way to create something like this ? What are the basic objects to use ?
Thanks.
...
Hello! I’d like to use Instruments to peek at some third-party applications on my iPhone, is that possible? If I attach Instruments to some of the applications I develop, everything goes well. But when I try to load some other application, Instruments complain that they can’t “get task for pid XY.” Is that a security measure?
...
Hi all -
I have a UIScrollView that houses a gallery of images the user can scroll through. This view needs to be visible on each of three separate UIViewControllers that are housed within a UITabBarController. Right now, I have three separate UIScrollView instances in the UITabBarController subclass, and the controller manages keepin...
My Rootviewcontroller uses NSURLConnection to get data from a server, and then, based on this data, loads a bunch (like 7) of smaller UIViewControllers that each also use their own NSURLConnection to get some more specific data from the server. But, the problem is, only the RooTViewController is recieving callbacks from:
- (void)connect...
Hey everyone,
I am learning about using the checkmark cell accessory and am wondering why the contents of my cell is disappearing when toggling it.
Here is my code:
+ (void) toggleCheckmarkedCell:(UITableViewCell *)cell {
if (cell.accessoryType == UITableViewCellAccessoryNone)
cell.accessoryType = UITableViewCellAccessory...
I'm trying to detect any touch on the iPhone's UIStatusBar but its not working. I've tried subclassing UIApplication and UIWindow to access it but still nothing
...
I'm hoping someone out there can back me up on this...
I've been working on an application that allows the end user to record a small audio file for later playback and am in the process of testing for memory leaks. I continue to very consistently run into a memory leak when the AVAudioRecorder's "stop" method attempts to close the audio...
I have a tableview with a search display controller. It has been working fine in the past, but recently has started crashing for certain search results. Here my code searches a Golfer based on their Name, Age and Handicap. The data is correctly loaded into the table, I can access and drill down to receive further information. However...
I can't get my application running with instruments. I tried running through xcode with run->start with performance tool, instruments starts, iPod gets stuck and restarts everytime. It is really annoying. I am on 10.6.2, xcode 3.2.2 and using 3.2.1 SDK. Need help!
...
In my iphone application, I'm using MapKit with MKMapView and custom MKAnnotationView.
The problem is when annotations overlap on map (in my app, annotations are photos and those photos may overlap) and when you tap on the annotation that appears on front, it's another annotation (on back) which receives the event (seems to be random).
...
When MyView gets pushed on to the NavigationController, I have the following code
public override void ViewDidLoad ()
{
this.NavigationController.Toolbar.SetItems(new UIBarButtonItem[] {
new UIBarButtonItem("Next",UIBarButtonItemStyle.Plain, ClickNext)
}, true);
this.NavigationItem.Title = "Proposal Plan - ...
I have a double number and I would like to convert it to string.
The number is, for example, something like
24.043333332154465777...
but if I convert it to string using something like
NSString *myString = [NSString stringWithFormat:@"%f", myDouble];
The string is just
24.043333
how do I get a full string the corresponds to the wh...