I've got an app, written in Obj-C. The info.plist has a list of file types that the app can open. I'm pretty sure that this is working because when I try to drag a file of an unacceptable type, the app doesn't highlight, but when I drag a file of an acceptable type, it does highlight, and lets me drop.
When I drop, the app starts up, co...
Let's say we have a view controller with one sub view. the subview takes up the center of the screen with 100 px margins on all sides. We then add a bunch of little stuff to click on inside that subview. We are only using the subview to take advantage of the new frame ( x=0, y=0 inside the subview is actually 100,100 in the parent view)....
Hello,
I'm currently working on an application that needs to check a web service for an updated version of a locally stored XML file. If there is an update the file must then be downloaded and saved to the iPhone. I'm not really sure what direction I need to head in.
Currently I know that I can use NSURLConnection delegate methods to e...
Quick question, when you are implementing a UITabBarController and you are adding image icons to the tabs is there a way to override the blue active masking color, can you specify your own gradient or a custom image for the background grad?
cheers Gary
...
I currently have a UITableView with each cell containing four UIButtons. I am placing an image for each button with a downloaded picture from online. I'd like to have the button fade in when the image is finished downloading. I know I can animate in the viewDidLoad, but I assign the image in the cellForRowAtIndex function. How do I go ab...
My mp3 playing code is:
NSError *error;
soundObject = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:audioPathString] error:&error];
if (soundObject == nil) NSLog(@"%@", [error description]);
soundObject.delegate = self;
soundObject.numberOfLoops = 0;
soundObject.volume = 1.0;
NSLog(@"about to play");
[soundObject p...
The following line of code displays an image on my application window, within an NSImageView control named outputImageView. I used Interface Builder to put the NSImageView control onto the window, initially (then bound it to outputImageView). How do I change the size of the NSImageView control within my program, so that it matches the ...
hi this is lak..
thank you for your fast feedback
but that not worked for me i am using labels in table..
UILabel *label1 = (UILabel *) [cell viewWithTag:1];
label1.backgroundColor = [UIColor clearColor];
label1.text=aStation.station_name;
label1.textColor = [UIColor colorWithRed:0.76 green:0.21 blue:0.07 alpha:1.0];
[label1 setFont:[UI...
FYI: Im following a tutorial from the book "Beginning iPhone Development", chapter 12.
Here is the setup, i have a two files in the Classes folders called QuartzFunView.m and QuartzFunView.h (ie. a class called QuartzFunView).
Now if i double click on my blaViewController.xib file, then click on "View" and in the Identity Inspector tr...
I have an application with a flipside view and a main view. The main view copies information contained in an array from the application delegate, and pushes the useful information into a for loop which then takes the name, GPS coords, and other identifying information and passes that into a series of methods and classes which result in a...
What is the best practice, even in general programming, when you have an undefined, possibly infinite, amount of items that you need in an array but don't have defined bounds. Can you define an endless array in objective c that you can keep pushing items onto, like other lanaguages have a list item.
Thanks for any help.
...
Actually I am looking for Multitasking in Iphone SDK 4.0 and want to run to apps at the same time as it does in Ipod application for Iphone like songs while u can use different apps also. Is there any idea that how to use that feature in Iphone SDK 4.0 beta.
I have tried multiple NSThread but runs on same view or differnt but cant figur...
There is always a pre-written function at AppDelegate:
(NSString *)applicationSupportDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : NSTemporaryDirectory();
return [basePath stringByAp...
The short version: Is there a way to populate one specific row in a tableView with one value from one array, then populate another row in that same tableView with one value from a different array? For example, cell 1 would have the first value from Array A, cell 2 would have the first value from Array B, cell 3 would have the first val...
I get the directory path from fsevent, such as "/User/Data/"
But what I really want is "/User/Data/change.txt"
I have read the programming guide, it said
typedef void ( *FSEventStreamCallback )(
ConstFSEventStreamRef streamRef,
void *clientCallBackInfo,
size_t numEvents,
void *eventPaths,
const FSEventStreamEventFla...
So I have my app working good when you press and drag along. I also have UIButtons set to Touch Down in Interface Builder.
As well when you drag you need to drag from the outside of the UIButton. You cannot click on the UIButton and drag to the other.
TOUCHES MOVED:
Code:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)even...
Hello, I'm trying to animate my detail view controller to transition with a page curl (up/down). I'm trying to achieve a similar effect as the Notes application on the iPad, this transition was also reproduced by CulturedCode in their Things application for iPad.
My problem is that the animation is clipped to the bounds of the Detail V...
I am displaying a UITableViewController inside of a UITabBarController that is being presented modally:
-(IBAction)arButtonClicked:(id)sender{
//this is a uitableviewcontroller
ARViewController* arViewController = [[[ARViewController alloc] initWithNibName:@"ARViewController" bundle:nil]autorelease];
LeaderBoardTableViewCon...
Hi folks,
Actually, I am very new to Mobile programming, and need to take your opinions.
I am a Java Developer with a C background, and I need to start Learning Objective-C with a target to do mobile app for iPhone and to refresh my knowledge in C (as I know, Objective-C is a pure superset for C, ain't it?).
So, the question is, With...
Hi
Pulling my hair out in trying to get a simple window based project to compile.
I am running both 3.2.2 and 3.2.3 versions of Xcode.
The latter is set up in a separate folder.
Originally I used the latter to create and compile my project against the new 4.0 sdk. It compiled fine.
Then I made the mistake of deleting some sdks I though...