I am trying to dynamically show/hide table rows/sections when turning a UISwitch on or off. This behavior can be seen when switching wifi on or off on the iphone, as you can see the rows below it being shown or hidden.
Any idea on how this is done?
...
Hi guys, been looking at this for days..
- (void)viewDidAppear:(BOOL)animated {
#if !TARGET_IPHONE_SIMULATOR
UIButton *returnButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
returnButton.frame = CGRectMake(0, 0, 100, 100);
[returnButton setTitle:@"Tap here to return" forState:UIControlStateNormal];
[returnB...
I am wanting to show a simple loading dialog when certain things are happening in my app. I figured I would just create a new view, add a label to that, and then set that view to a subView of my current view.
When doing this, I don't see anything!
Here is how I am writing my method:
- (void)showLoading {
UIView *loading = [[UIV...
Using Core Data. Let's say we have models for Team and Player.
Assume:
-Each player is a member of a single team
-Relevant relationships have been made in a xcdatamodel file.
I have a TeamListViewController (listing all teams), when I select a team I want to see a list of just those players related to that selected team on the PlayerLi...
I'm working on an iPhone game using OpenGL ES. I recently updated my iPhone 3G to iOS4, and ever since the update, when I've been play-testing my app I've been getting very high latency on my accelerometer and touch events -- my phone will often respond a second later than it should, which makes the game unplayable. This doesn't occur al...
I want to create a custom tab bar for an iphone app that looks like this image:
[IMG]http://i33.tinypic.com/95tnxc.jpg[/IMG]
there would be multiple clickable semi-circles at the top that would switch tabs. Each tab would have some buttons or other UI items under the semi-circles that allow you to interact with the display at the top....
Is there anyone who can teach me how to show an UISegmentedControl object in vertical direction, instead of in horizontal direction?
...
I have my iPhone WebApp actually running offline and caching all assets.
When I save it to the desktop and run the app, the webapp will continue to call
main.manifest (this was specified in my HTML tag as per the documentation).
Also I have setup my .htaccess file as below, and restarted apache
AddType text/cache-manifest .manifest
...
Hello!
I am currently developing an RPG without using OpenGL, and I'd like to keep it that way.
Is it possible for me to have a background scroll like it does in the old Final Fantasy games using IB's UIScrollView? And then to have the background remain centered upon the player sprite?
If it is possible, that would be terrific! Any co...
A (when the cell is newly created):
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell a...
I have been sourcing for codes/tutorials on iPhone UITextField. I came across its sample code on how to use API commands for it. I then created my TextFields programmatically, and now I cant close the keyboard when I press Done. I know the command is resignFirstResponder. But when and how do I use it?
Here is what I did.
textField = [[...
If you set a property to nil in viewDidUnload do you need to release it again in dealloc?
...
Hi,
My App will require the use of about 500 images and this number could possibly grow. Those images are read-only and the user won't add any pictures while using the app.
Image sizes will probably range between 50 to 250k .
I want to prevent the images from being copied by someone exploring the bundle resources for example.
So far ...
I've been trying to compile an iPhone app to test on a device, it's properly provisioned and everything, but I'm getting the following error in xcode when I'm trying to build it:
error: can't exec '<com.apple.tools.product-pkg-utility>' (No such file or directory)
Command <com.apple.tools.product-pkg-utility> failed with exit code 71
...
I'm trying to decrypt a variable that I've encrypted from my web server and haven't gotten any luck. I've encrypted the variable on the site using sha1(variable) in php, but am stuck trying to decrypt it once its passed back to the iphone. If you have any other code other than sha1 that works, im happy with that too. thanks
...
hi all
Can Any one tell why this error occur and how to resolve it
Check Dependencies
Argument list too long: recursive header expansion failed at /Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/Contents/Plug-ins/Comments.acroplugin/Contents/MacOS.
Thanks
Cristina Martin
...
how can i get the image size when it's zoomed by user,
i write these on my project :
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return imageView;
}
-(void) didLoad{
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.jpg"]];
self.imageView = tempImageView;
[tempI...
I have a view controller (view A) presenting a modal view (B) when the user pushed a button and the view B has itself a button to present view C. My problem is that if the user exits the application when the view B or C is shown, the same view will appear next time the application is launched. Is there a way to dismiss the views B and C...
Is there a way to enable rotation but without the animation as you turn the device from portrait to landscape?
I'm looking at:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
... but I don't see how I can set the "duration" property to 0 and thus elimi...
Hi Everybody,
I have a TabbarController with 3 tabs with each tab representing a navigation Controller. What I would like to do is when a user selects a particular tab the whole tabbar Controller should refresh.
To make it more clear...
When a user selects tab0 and navigates in that tab 2-3 times and then the user selects tab1. Now wh...