I have following code in my Application.
Comments in my code will specify "My Question".
- (void)applicationDidFinishLaunching:(UIApplication *)application {
tabBarObj = [[UITabBarController alloc] init];
vctr0=[[SplashScrn alloc] initWithNibName:@"SplashScrn" bundle:nil];
vctr1=[[SearchViewController alloc] initWithNibName:@"Sear...
In XCode I made a new run script build phase and want to do one of two things:
edit it
delete it
I can see how to add a new one, but not how to access the existing one?
Any help appreciated, thanks :)
...
I am building an iPhone app that contains medical information for medical professionals.
The data has a sort of taxonomy which is easily represented in the form of e.g. a mind map on a piece of paper. On the device, the idea is to navigate through a series of items in table views to get to a detail view with text and picture information...
I have a bunch of images on the screen.... UIImageView *s1, s2 ,s3 etc up to *s10
Now suppose I want to update the image each displays to the same image.
Rather than doing
s1.image = sampleimage;
s2.image = sampleimage;
:
s10.image = sampleimage;
How could i write a for loop to go from 1 to 10 and then use the loop var as part of the l...
hi guys.
I am developing GL paint application.
To paint any object, I am using UIView that implemented.
Starting paint method :
- (void)viewDidLoad {
....
[NSThread detachNewThreadSelector:@selector(paintingObjects)
toTarget:self
withObject:nil];
}
- (void)paintingOb...
Hi,
I suspect the answer to this is 'no' (as with so many iPhone questions), but I wanted to be 100% certain :)
Is there any way I can launch a phone call within an iPhone app and then have my app immediately re-launch (during the call) so that I can display some information about the call in progress?
Thanks,
John
...
I need a UIImageView that can draw itself in color or b/w according to a flag:
BOOL isGrey;
I'm trying to do it by drawing a black rectangle on top of the original image with the Quartz blendmode set to Color. This works except it doesn't respect the image's alpha mask.
See illustration:
Searching Google and SO, I found and tried...
16 Bytes is pretty small, right? None of the UIImages I create in my app are that small, yet the Leaks Instrument is reporting a leaked UIimage of size 16 Bytes... Any clues on what this could be? Incidentally, there was also a leaked CALayer object of 48 bytes...
...
I am releasing things but the memory seems to still be there according to instruments. Am I just releasing the pointer and not the actual data? How do I release THE DATA in objective-c? What's the difference between [anObject release] or [&anObject release]???? Please excuse my lack of knowledge on the subject of memory and pointers.
...
The only place I can think to change is the version in my Target Properties. However, I would assume this is supposed to go somewhere in my Info.plist file as well?
If not, how can I read this version info into my app at runtime (if it's in the plist somewhere, that's no problem).
...
Hi All,
Is there a way to detect when a UITextView has finished scrolling? As a note, I allow the user to enable or disable paging.
Thanks.
...
Hi Team,
In iPhone SDK, can we only observe Objects, and not struts like CLLocationCoordinate2D?
Example:
I've got some very simple code where I'd like to observe a property of type CLLocationCoordinate2D, I've made sure to synthesize it in ABC.m.
@interface ABC
{
CLLocationCoordinate2D currentLocation;
}
@property (nonatomic, readwr...
i am using cocos2d to develop a game, now have a sprite loaded from image, and i would like to draw something on it like square? how can i do that?
...
I'm displaying a few images that are being downloaded over a network connection on a UITableView. Loading these images is extremely slow. Are there any performance tricks I can use?
...
I am trying to figure out how to pass a UIImage around between various view controllers without duplicating the UIImage and increasing memory unnecessarily. The image is passed successfully using the method below, but I cannot seem to free up this UIImage later on, which ends up weighing down my app with 7MB+ of data that cannot be accou...
hi
i am making an application of iphone, in which i hav one view name dealsviewcontroller, in this view i have table view in each row i am showing 3 arrays values. now the problem is that i have to shows these arrays values in next view in separate label. if anyone has any solution of this, it would be greatly apreciated. Thanx in advanc...
Hi,
I have several buttons in my view built using IB. Each button triggers a short audio sound.
I want to be able to drag my finger over them to trigger them... just like you are dragging your finger over piano keys (don't worry I am not making a piano app)
I cant figure out how to recognize a touch outside the button and then inside ...
Hi, What is the difference b/w NSArray and NSMutableArray ? i am new to iPhone.
...
I am trying to free up some unused resources in my app. I have a couple MBs of an (object?) of category GeneralBlock and I have no clue what this is or how I should be approaching the freeing up of this GeneralBlock.
GeneralBlock has no apparent use. When I start my app there is a MENU screen at which point in time I have about 300kb o...
Hi All.
I have been scratching my head for this issue. I hope the query title is self explanatory. On clicking a button i am opening URL like following:
NSURL *girlsUrl=[NSURL URLWithString:[IMAGE_URL_GIRLS objectAtIndex:(indexValue*3 + currentPageNumber)]];
[[UIApplication sharedApplication]openURL:girlsUrl];
its opening a URL in sam...