Hello,
I have been trying to add this UINavigationController to a subview of my form... all I am getting is a large grey screen.
LiteViewController *lite = [[LiteViewController alloc] initWithNibName:@"LiteViewController" bundle:nil];
[self.view addSubview:lite.navigationController.view];
It should add a full screen navigation contro...
I am at a loss as hot to properly initiate a NSMutableString, I have tried:
NSMutableString *string = @"some text";
which is the same method one assigns a string to an NSString but have hade no luck. Additionally I have not been able to figure out how to redefine the string contained with the NSMutableString. I would imagine it would ...
Really beginner question here.
I have an NSArray of images which in its last line has an error in Xcode saying that the "initializer element is not constant".
any help please?
...
How can I turn domain.com into https://www.domain.com (the actual address)? Is there an easy API for this?
The purpose is to allow a user to enter a domain in preferences and allow my app to convert that into a fully qualified web URL like a web browser does when I type google.com it returns http://www.google.com (ish).
...
I keep getting this warning
warning: passing argument 1 of 'CGPathMoveToPoint' discards qualifiers from pointer target type
I am calling the function like this
const CGAffineTransform m = CGAffineTransformIdentity;
CGPathMoveToPoint(path, &m , nextPos.x, nextPos.y);
I already tried
CGPathMoveToPoint(path, NULL , nextPos.x, nextP...
Instrument reports leak for this simple use of NSURLConnection:
#import <Foundation/Foundation.h>
int main (int argc, char ** argv)
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSURLRequest *theRequest = [NSURLRequest
requestWithURL:[NSURL URLWithString:@"https://gmail.com/"]
cachePolicy:NSURLRequestReloa...
I have a Tab Bar-based application with a navigation controller for each tab. One of the tabs is titled "People" (for sake of example) which loads PeopleViewController, which lists people. When a person is pressed, it pushes PersonViewController to view that person. Since there are many tasks associated with each person, I'd like PersonV...
Like if I have in my .h file:
int index;
and then in the .m file I have:
if(index == nil)
and I haven't assigned a value to index, will that come up true?
Thanks.
EDIT:
I guess nil is only used for objects. So what is the state of an int that hasn't been assigned a value?
...
Hello All,
I would like to put my foot in world of iPhone programming. I got fair bit of experience with C# coding.
Should I go and start learning objective-C even before touching cocoa [or] there is better approach (i know nothing about iphone programming).
Are there any recommended books / blogs I should go through for my learnin...
What is a simple piece of code to read a stored number, calculate interest on the stored value, say $100, at a rate of %10. Then I store the new value in place of the old one. I was working towards this:
NSNumber *bankTemp = [[NSNumber alloc] initWithInt:[[NSUserDefaults standardUserDefaults] integerForKey:@"bank"]];
bankTemp = bankTe...
Given that drawRect takes a CGRect 'rect', how can I create 4 separate CGFloat variables with the individual values of rect (x,y,width,height)? I need to use the variables on an individual basis to determine certain drawing scales within the drawRect method.
- (void)drawRect:(CGRect)rect {
CGFLoat x = ***x value of rect***;
CGFLoat y...
My AppDelegate_Phone class has the method -(void)doSomething. How can I call that from within a View Controller viewController?
I've tried:
[[[UIApplication sharedApplication] delegate] doSomething];
No luck.
doSomething not found in protocol
Edit. The action is being performed, but the Warning persists in XCode. What does the warni...
I have a UITableView with 2 sections in it. I have enabled rearranging in my table view, but I have a strange problem.
I do not want the user to be able to rearrange rows between sections (I only want users to be able to rearrange rows within their section). If I try to drag a row from the first section to the second section, it will no...
I have a UIImageView within a UIScrollView which I have enabled the user to perform any number of flip and rotation operations on. I have this all working which allows the user to zoom, pan, flip and rotate. Now I want to be able to save the final image out to a png.
however it is doing my head in trying to work this out...
I have seen...
In the Safari bookmarks manager on iPhone, the UITableView seems to have behaviour that isn't standard. I'm referring to this:
In edit mode, the bookmark UITableViewCells have both a rearrange control and a UITableViewCellAccessoryDisclosureIndicator accessory view next to them. How do you get both? In my table views, when you go into...
Hi..
I am using a tableViewController having 2 sections ....
1st section has 7 rows & 2nd section has 2 rows.
So when i edit in textfields of 2nd section keyboard hides these field so how i will handle
keyboard for these fields only.(i am using tableviewController which has default scrolling).
I am new to objective -C.....Your help plea...
I have a string variable tmpImgURLStr which contains URL like www.abc.com/img.png. i want to display that image in my imageView for that i have use some code but it's not working which is given below:
NSLog(@"Img URL === %@",tmpImgURLStr);
NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:[NSString stringWithF...
Hey! I have my Mac application set up to launch on myApp:// protocol is called in a browser, like Safari, but I cannot seem to be able to do an action when the application is called by that protocol. The delegate method would have to be something like:
- (void)applicationDidBecomeActiveByURL:(NSURL *)protocol;
I don't know this beca...
Hello, I have a UIImageView, which pics up different images from the web, they are all different res. I have them to display as Aspect fit so that the whole picture displays even if it means leaving empty space on top or sides.
What i want to have the feature of doing is, once its displayed, to zoom in and out using the pinch or any oth...
hello
I am implementing iAd to my project But the problem arises when i will included iAdd to my playlist page .then demo version of iAdd is shown but when i click that image it will not open the whole page.Butwhen i will try to empty xib then it will open the whole page.now i will tell the whole process of connection and code which i us...