Hi,
I'm playing with gdb within xcode debugging an iphone app.
Supposedly, I should be able to use the following command:
info malloc <0xaddress>
see
http://www.friday.com/bbum/2010/01/10/using-malloc-to-debug-memory-misuse-in-cocoa/
and http://stackoverflow.com/questions/2910861/strange-gdb-error-unable-to-trace/2911197#2911197
I...
I'm trying to make an iPhone app that is controlled by touch. I also want a powerup to be activated when the user double-taps. Here's what I have so far:
UITapGestureRecognizer *powerRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(usePower)];
powerRecognizer.delaysTouchesEnded = NO;
powerRecognizer.numb...
(In the application start up event, I added my main view to app's Window in the following codes:
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
MyViewController* vc = [[MyViewController alloc]
...
I have an application which I wrote which used to work perfectly fine. There is new requirement that all data needs to be encrypted now, so I implemented encryption by making all my core data fields type transformable and writing custom transformers for each data type which encrypts/decrypts each element of data as it is written/read fro...
Hey guys, I had a question about naming conventions. I noticed in alot of cocoa classes people have made, and in apples core they name some of there variables like __name is there a reason for having the __ is this something I should be doing in my own classes? If so where and when should I use it?
...
In Apple's official Maps app for the iPhone, there is a small 'page curl' button in the lower-right corner. When you press it, the map itself peels back to reveal some options. I would like to duplicate this effect in my own app.
I'm trying to use UIModalTransitionStylePartialCurl (Added in SDK 3.2). In terms of its layout, my app re...
Hey there,
There's a bug in OS 4.1 that has broken location services for some iPhone apps ( https://devforums.apple.com/message/306250 ). Basically location services fails to turn on, and doesn't even ask the user for permission to get their location. The worst thing about the bug is that it doesn't occur when you're installing the app ...
I'm new with objective-c (and obviously iphone development) and I have to dynamically create UI layout of my aplication, to be more precise I have to create N (3 for example) different views which are connected with UIPageControl (link). After that, I have to add various dynamically created controls on created views. Any suggestions? som...
I'd prefer not to change the way anArray is designed because it is also used elsewhere as a dataSource for a UITableView. The odd number values are "user names", and the even number values are their matching "dates". (The "pairs" must remain together.)
How would I sort "by user name"?
How would I sort "by date"?
Should I be using s...
How do I use the next button (the done button) in the bottom left of the keyboard on the iPhone?
...
Hey guys,
Is there anyway of renaming a specific cell's text? I know what the row number is, but I don't know how to change the cell title. Any help would be appreciated.
Thanks,
Kevin
...
I'm displayed a small amount of local content in a UIWebView, roughly 3 paragraphs of text and one 100x100px image. When the UIWebView is pushed onto to the nav controller, it takes about half a second before the content is displayed. This occurs on the device, not in the simulator. Obviously the UIWebView needs to do some work before di...
First of all, I'm new to Objective-C and IPhone programming. There is somehing I can not get to work. I have a IPhone window application and in the MainWindow I have a button. I want to show another window when I click the button. I've bind the event with my controller. I just don't know how to show my other window (otherWindow) in th...
I am developing an app, it gets a list of locations from internet, and will trigger map app when click one item of the table list.
I found when I try to go back from map app (double tap or just one tap of the home key), my app just restart to the first screen.
I know ios4 have multitask feature, my app is built with SDK3 and test in m...
When I am try to present a UIViewController with a NavigationController from a UiViewController, the X-Code is crashed, I don't know why because I do it like all other views in my App, but just only this one has problem, I tried to debug but I didn't find out the cause, X-Code crashed right at "presentModelView:" method, and a funny thin...
Hi Everyone,
Still a newbie here, forgive me. I'm trying to make a button that will change an Image thats located in the same view.
- (IBAction)myButton:(id)sender {
myUIImageView.image = [UIImage imageNamed:@"image.jpg"];
}
And I synthesize myUIImageView above this. I have also created it in the .h file:
- (IBAction)myButton;...
I've searched through the iTunes Connect Developer Guide 6.1 - but can't seem to find anything about this.
I've just completed entering the meta-data into iTunes Connect for a new app. This app runs on iPod and iPhone and has graphics optimized for the Retina display, so it has @2x images for all graphics.
I prepared 5 screenshots to ...
Because the navigationItem.rightBarButtomItem is customized, it will occupy a big place and the title view won't be on the center.
For example, I want the "OMG" is located at the center between buttoms of "Home" and "Group".
How to achieve this?
...
I add button in UITableView cell. My code is
UIButton *btnView = [[UIButton buttonWithType:UIButtonTypeContactAdd] retain];
btnView.frame = CGRectMake(280.0, 8.0, 25.0, 25.0);
//[btnView setImage:[UIImage imageNamed:@"invite.png"] forState:UIControlStateNormal];
[btnView addTarget:self action:@selector(action:) forControlEv...
I want to use portrait mode only when I take a photo. I've tried to do this [[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait]; It works but it will be deprecated.
I've tried to implement shouldAutorotateToInterfaceOrientation in the view that call UIImagePicker but it doesn't work.
thank you :)
...