After upgrading my SDK version I noticed that cellForRowAtIndexPath is always called prior to viewWillAppear. Previously the order of execution was opposite: viewWillAppear would always be called prior to cellForRowAtIndexPath. Because my application logic often used viewWillAppear to initialize objects that are subsequently used in cell...
Hi
I used to show a splash screen which in background load some data from web, I also check that if the location of the user is changed from one city to another city I want to show in alert to the user with the message that you are now in "CityName" would you like to see data from this city?
I have tabbed application and I have presen...
Hi all,
I'm facing a problem in popping to rootViewController.
On my rootViewController, I'm presenting a modalViewController then dismissing it to push another viewController on self.navigationController. Here, I'm able to see the navigation backbarbutton to be pointing to my rootViewController and loads it properly when it's pressed...
So after upgrading to a universal app, one of my UIAlertViews shifted up, but only for the iOS4.0.
Before:
.
After (only on iOS4.0):
.
I looked into
alert.transform = CGAffineTransformTranslate( alert.transform, 0.0, -100.0 );
to shift it back down, but that does absolutely nothing. Does anyone else have this problem?
Thanks.
...
I am trying to change the background color of button in a UITable view.
[UIButton buttonWithType:UIButtonTypeRoundedRect]];
[self.deleteButton setTitle:@"Delete Contact" forState:UIControlStateNormal];
[self.deleteButton addTarget:self action:@selector(deleteContact) forControlEvents:UIControlEventTouchUpInside];...
I have an object Foo that has an NSNumber property which is declared like this:
@property (retain) NSNumber *siteID;
and @synthesized.
When I I do something like this:
Foo *myFoo = [[Foo alloc] init];
NSNumber *newNumber = [[NSNumber alloc] initWithInt:42];
myFoo.siteID = newNumber;
[newNumber release];
The assignment on line 3 th...
Once the mainviewcontroller is loaded via [self.delegate flipsideViewControllerDidFinish:self];
I want the app to do a message box what void do i need to use as
- (void)viewDidLoad {
does not work
thanks
Mason
...
Is there a way to create a reflection on a UILabel?
I know how to do it in a UIImageView, but it's different.
Thanks
...
I am getting the following debugger error when I encounter a breakpoint on the device:
Error from Debugger: Previous frame inner to this frame (gdb could not unwind past this frame)
This occurs when the app hits a breakpoint. If I hit the continue button in the debugger, it continues happily until the next breakpoint, when it pops up ...
Hi folks,
I'm trying to setup a simply mobile page for a client with a link to an .mp4 video file. Lke so:
<a href="My_Video_File.mp4" target="_blank">Watch MP4 Video</a>
And then I've obviously got my video file sourced properly and the .mp4 has the following characteristics:
Dimension: 480 * 272
Codecs: AAC, H.264, MPEG-4 SDSM, MP...
I have a regular UITableView without any sections set up. I'm trying to automatically scroll to a row at a given index path like so...
[table scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:[self getIndexToShow] inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:NO];
But when ran I get this error...
2010-07-19 18...
I'm working with Xcode 3.2.3 and iOS 4.0.1 and I have downloaded an open source iPhone game to learn from but without editing anything I tried to run it in the simulator and it throws this error message:
ProcessPCH /var/folders/-r/-r6hd0CEEASnoGYBU9KSlk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/catchcat_Prefix-crjs...
Hey i need some general advice on how to structure my project. i am trying to make a simple strategygame where some object move around in a "worldspace" and youve got several different tactical views, which show diffent areas of the game. nothing special. but since i'm a rather unexperienced programmer, some things are not quiet clear to...
When in the Camera Roll section of the Photos app, you can click the top right button to edit the photos. This replaces the bottom tab bar with three new buttons.
I would like to do something similar, but I cannot get my buttons to be on TOP of the tab bar. Is there a way to specify the layer order? Or do I need to do something diffe...
Is there an easy way to display a wait animation in the iPhone sdk. I have a screen that will take a few seconds to load, and I'd like to give the user some feedback that something is happening. Any suggestions?
...
Hi, I have a following application structure:
Tabs - Tab1 - 5. On on of the Tabs I have a navigation view and instead of having a tableview like in following tutorial:
http://broadcast.oreilly.com/2009/06/tab-bars-and-navigation-bars-t.html
I would like to have buttons on a page instead of a table view just like in this tutorial:
h t ...
http://developer.apple.com/iphone/library/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html listing 4-9 and 4-10
i tried to run the code but with no success, i run into a problem with gyroHandler.
can someone post an example of a completed code, without much changing the sample listings? meaning...
Hi all, I'm trying to load a PDF in my App:
Using this works fine
pdfURL=[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource: @"myFile" ofType:@"pdf"]];
controller.pdfUrl = pdfURL;
[self.navigationController pushViewController:controller animated:YES];
[controller release];
Howev...
How can I round a number to the nearest X value (for example 50)
i.e
47 would be 50
24 would be 0
74 would be 50
99 would be 100
etc...
I really have no idea where to start looking into how to do this...
P.S. Im using cocoa-touch for the iPhone
Thanks a lot
Mark
...
I have struggled every step of the way with the process of submitting to the appstore. I am now at the point where it asked if I wanted to use the distibution certificate I have in Xcode.
I selected yes and I get an error as below. What is the problem with this? please help. I have stuggled more to setup this process than to develop my ...