Hi guys
Anybody find that xcode is adding a new line to you source code when you hit the backspace key?
For example I am writing code and I make a typo and I hit back space it will the immediately duplicate the line of code the cursor is on and it will appear below, and back space will delete on each line char by char as it hit the key...
Hello all, I just tried adding some print statements to my shouldautorotate method and noticed that it checks it 4 times which does make sense but even though I am not switching mode from portrait to landscape,
it returns portrait 3 times and on the fourth time, it returns landscape even though my simulator is not in landscape.
if(inte...
Hello! I’d like to do this:
static const int size = 5;
@interface Foo { char bar[size]; }
But the compiler complains that “instance variables must have constant size”. Do I really have to #define the size, or is there a way to get it work with a regular constant? (I’d like the memory to be allocated statically, no malloc.)
...
Hello everybody,
I'm trying to create an iPhone app for helping me managing my class schedule. This means that I will have various subjects recurring regularly at a given time. So I might have one subject recurring every 2 days, whereas another is recurring every 3 weeks. I'm wondering now what the best way to storage this is, so that i...
My iPhone application is using AsyncUdpSocket to handle a UDP socket.But when my application goes background in iOs 4.0 and return back, i am getting following error.
Application 'MyAppName' exited abnormally with signal 13: Broken pipe
This is because my sockets are disconnected when my application goes to background.
How to run ...
I have a navigationController from where I launch a ModalViewController.
In this ModalViewController I will display the MailComposer which itself another ModalViewController.
Now if the user hits the send button the MailComposerView should be dismissed as well the other ModalViewController. For that I call a delegate method in the mailC...
Hi guys,
I am using addTarget:action:forControlEvents like that :
[newsButton addTarget:self
action:@selector(switchToNewsDetails)
forControlEvents:UIControlEventTouchUpInside];
and I would like to pass parameters to my selector "switchToNewsDetails".
The only think I suceed to do is to pass the (id)sender by writing this :
action:@s...
This should be straight foreward, but I simply can't figure it out(!)
I have a UIView 'filled with' a UIScrollView. Inside the scrollView I wan't to have a UITableView.
I have hooked up both the scrollView and the tableView with IBOutlet's in IB and set the ViewController to be the delegate and datasource of the tableView.
What else d...
i hav a tabular forms used to generate reports which are html files and i want to save these files by filling with data dynamically using obj-c..
any ideas how to do ..
Thanks in advance
...
I have been looking back at some old code from when I first started learning Objective-c and I have a quick question:
// THIS IS MY OLD CODE
@implementation syntax_UINavAppDelegate
@synthesize window;
@synthesize navController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {...
I am a bit lost with the memory management. I've read that you should release whenever you alloc. But when you get an instance without the alloc, you shouldnt release.
What about this situation, just need to know If I was coding correctly. I'm still new on iphone dev.
I have a class CustomerRepository it has a method
- (MSMutableArr...
I am splitting the pdf using pdfsam into single pages.After splitting all the internal links are removed.Is there any way to access the internal links between pages in the pdf ? but i can able to access the website links
how the internal links i.e page number are stored inside the annots array. i cant able to get the page number in goto...
If i implement my own version of awakeFromNib, should I call [super awakeFromNib] at the end of my method?
...
Hi, I am attempting to de-dupe an NSArray of NSDictionaries based on specific keys in the dictionaries. What I have looks something like this:
NSDictionary *person1 = [NSDictionary dictionaryWithObjectsAndKeys:@"John", @"firstName", @"Smith", "lastName", @"7898", @"employeeID"];
NSDictionary *person2 = [NSDictionary dictionaryWithObject...
I have a UITableViewController that is presented with a list of choices. After the user taps one, I'd like to return to the previous view. The return seems too quick with the code I'm using though. I'd like to pause for 0.2 seconds or so to give the user time to see their selection become checked. Here's the code I'm using now:
- (void)...
I'm working on a dual-iPad/iPhone application.
I'm having a problem that is occurring on the iPad only:
Root view controller is a UISplitViewController on iPad, UITabBarController on iPhone
A modal UIViewController can appear over the root controller
A modal UIViewController can appear over the previous modal controller
On iPad, modal...
If I want to pass an object that was created on the main thread onto an NSOperation object, what's the standard way of doing to so that I'm not creating any memory management issues? Should I make my object's properties not have the 'nonatomic' attribute?
Right now, I allocate the objects via [[[AClass alloc] init] autorelease], keep a ...
If I have an NSArray (or mutable array) with several dictionary objects (each dictionary is a Person) like this:
[
{ forename: chris, surname: smith, age: 22 }
{ forename: paul, surname: smith, age: 24 }
{ forename: dave, surname: jones, age: 21 }
{ forename: alan, surname: jones, age: 26 }
{ forename: cecil, surname: reeves, ...
Hi to everybody.
I need to upload photo on Facebook. But it seems to be impossible. I always have the same crash in console [UIImage dataUsingEncoding:]
The way I get my Image:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
[self dismissModalViewControllerAnimated:YE...
Hi there
Does someone know how the inactive done button in the Contacts App is done?
I would like to implement something similar.
So far I didn't saw any inactive property on UIBarButtonItem...
...