I am not a fan of the following construction
if (self = [super init])
{
//do something with self assuming it has been created
}
Is the following equivalent?
self = [super init];
if (self != nil)
{
//Do something with Self
}
...
Hi guys ! i want add an image background to my navigation bar like this :
what is the code ?
thank you
ist it right ?
//set custom background image
UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"NavigationBackground.png"]];
[self.navigationBar insertSubview:backgroundView atIndex:0];
[back...
Hi
Is it possible to avoid the "more" tab to show up in my tab-based app? My app has 6 tabs and it feels stupid to have the More tab for just 1 extra tab.
Thanks.
...
Hi everyone,
I'm really confused about that;
I have an example view. it contains an UITableview, this tableview contains approximately four or five rows. I don't know am i right or wrong way ? I'm trying that when the user click to the cell the table, i'm trying to add new custom cell onto the clicked cell with animation, this custom ce...
I am using this way to pass a string value from one view controller to another but still it's not working. Please help! From the main menu login method I pass a result value of a web service to SecondMenu:
- (IBAction)MainMenuLogin_Method:(id)sender
{
SecondMenu *lc2=[[SecondMenu alloc] initWithNibName:@"SecondMenu" bundle:nil];
...
Plz any one help me to get the address of the lat/log location. Actually i want the user
location address. I have tried more but i am not able to solve this problem if any on have
idea please help me.
I am a beginner in iPhone so please give brief explanation.
...
Hi. I use shake gesture for my application but i have problem!
My application is a multiview application and i want use shake gesture on the view 2.
If i active shake gesture on view 2, I have to write the code below in the MainViewController.m
and MyView2Controller.m to use the shake gesture.
Then if i shake the iphone, alert show on ...
as UIImagePickerController can got the video , but how to add subtitle to the video ?
any tips.... Thanks for your in advance .
...
I am using a custom UITableViewCell, which has some labels. There is one label in the cell where the string length is variable, due to this i cannot set a constant height to the cell in heightForRowAtIndexPath method. Neither I want to place the calculation logic out of my custom cell into the table delegate.
...
I have a login controller ,and after the successful login i want to pass some string value to the menu page.however it does not work.the application crashes.
I have tried possible suggesstion of Ihuk and SAM from the link below
http://stackoverflow.com/questions/1685964/how-to-pass-a-string-value-from-one-view-controller-to-another-vie...
Hey All,
I was wondering which of the following is less expensive on memory? I noticed you can leave out the *M_PI portion and it still will work fine. Does this mean if saves some calculations as well or does it matter?
Example:
CGAffineTransformMakeRotation(0.5*M_PI);
Or other example:
CGAffineTransformMakeRotation(0.7); for examp...
Hi,
I've really hit a wall and am need of some help! Thankyou for reading this far!
I'm in the middle of writing an app that talks to my ROR web-server for database requests and works great thanks to ActiveResource. But I now need to also upload files to the server, and I plan to use ASIHTTPRequest which looks great, my problem thoug...
It's a small application, named Simon Basic Edition, and it is in the Apple Apps Store top 100 in Games > Kids.
The first version is pretty basic, but I made a bunch of improvements in 1.1. which was submitted a week ago to iTunes Connect.
Based on the same source, I have written another Simon Cards Edition which is also waiting for th...
Hi,
I would like to have an OpenGL view with an utility application.
What I do:
I create an OpenGL ES application template and a Utility Application template.
I copy the files EAGLView.m and h, and the five ES*renderer.* files from the Opengl project to the utility project.
I copy these lines from the OpenGl project to the Utility pro...
Hello, all ...
I want to determine when the index (transparent alphabet) along the side of a UITableView is tapped. To be more specific, I have a sectioned UITableView that has an index, and said index does the right thing, but when the UITableView's -scrollViewDidScroll method is called, I want to be able to determine if said scrollin...
Ok I think my understanding of properties in objective c may not be what I thought it was.
In my program I have a singleton that contains my class.
In my class during the init I assign a value from the singleton to my property.
I then assign a value to a property of that property.
However it does not keep the value and when I do a co...
I'm trying to catch when a user stops interacting with a UIWebView. I've added this code to my UIWebView, but it never seems to get called.
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"Touches ended");
}
...
Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button?
For instance, at the moment I have a UIView (A) with an object at the top and an object at the bottom of the screen and nothing in the middle. This sits ...
I am creating a budget application in iPhone. Budget for personal incomes & expenses.
Client's need is
I want to see line graph ( like stock market line report ).
Red line for (monthly / weekly / daily) expenses
Green line for (monthly / weekly / daily) incomes
The question is HOW?
Till now I have never faced this kind of require...
Can someone help me create an index/count button for a UITableView, like this one?
Is there an Apple example, or other tutorial? Thanks, Jordan
...