I just spotted the following in an online tutorial. It showed 001 as a method for assigning a selector, however I could not get this to work. Am I right in thinking that 001 is not right and 002 is the correct way, or am I doing something wrong with 001?
// 001
SEL mySel = [self something];
// 002
SEL mySel = @selector(something);
...
The docs say that I should not release any modeled property in -dealloc. For me, that feels like violating the big memory management rules. I see a big retain in the header and no -release, because Core Data seems to do it at any other time.
Is it because Core Data may drop the value of a property dynamically, at any time when needed? A...
Hi,
I have recently developed an app using core data as the storage db. The app allowed the user to read and write to the db. I am now developing a new app which the user doesnt need to write anything to the db, instead the app just needs to read the data. The data has relationships etc so cannot just use a plist or something similar. M...
Hi,
I use a form in a UIWebView in my iPhone application that initially is blank. After the user enters his name for the first time, I would like to store that information and use it for future form submissions, from the same app of course. Does this have to happen through javascript or from the iPhone API? I read about NSHTTPCookie and...
Hi,
I'm trying to use a global array in the appdelegate as a quick fix for a demo I'm building. The relevant code for this
.h file has the declaration
{
NSMutableArray *trnEntered;
}
@property (nonatomic, retain) NSMutableArray *trnEntered
.m file has the following code -
trnEntered = [[NSMutableArray alloc] init];
...
Hello all,
I have 5 UIScrollViews that are loaded into a UIView if a specific button is clicked. Each UIScrollView represents a section, and it contains a UIImageView and also another UIScrollView.
Each time I click on the buttons to load the new "section", the UIImageView brings the new image, but the inner UIScrollView doesn't update...
Is a transient property a "managed property" in terms of Core Data? Does Core Data manage it's memory too? Or must I -release that manually in -dealloc?
(I think no, because I might choose to not create a subclass - but I guess it doesn't make sense when I have a transient property, since I need a subclass to calculate that derived valu...
Hi,
I am quite new to the whole IPhone development thing and was playing around with the Three20 library. The samples for this library showed me an easy way to create a nice looking button with styles etc and this to my view:
TTButton* button = [TTButton buttonWithStyle:@"forwardActionButton:" title:@"Login"];
[button setFrame:CGRectMa...
Hi all!
How can I insert into my UIViewController an image from the resources as background image?
thanks in advance!
...
Hi everyone!
I have an iPhone application, which lets the user add and and modify Assignments. Each Assignment entity is has a relationship with another entity: Course. When the user adds a new Assignment, he has to choose a Course. So far, so good.
But the list of available courses is editable, so while the user is adding an Assignmen...
I have just been watching the Stanford iPhone lecture online from Jan 2010 and I noticed that the guy from Apple keeps referring to getting an objects class name using "className" e.g.
NSArray *myArray = [NSArray arrayWithObjects:@"ONE", @"TWO", nil];
NSLog(@"I am an %@ and have %d items", [myArray className], [myArray count]);
Howeve...
Are managed properties already set to default values when -awakeFromFetch is called?
...
Is There any concept of HTTPS in Iphone.how iphone apps are safe?
if we are developing any apps related to some security?how can we provide security to iphone apps.
I know that NSURL,NSURLConnection classes contains in Build HTTP but is there any concept of HTTPS?
Thanks,
...
-willTurnIntoFault or -didTurnIntoFault? I guess it's stupid to release properties in both of them, so I must choose one. Which is the best?
...
I've seen questions asked here before, but they do not address the issue. That said:
"In App Purchases" specifically may not be real world goods or services, according to Apple's guidelines. What services allow integration with iPhone apps so that I can use ObjectiveC to sell things in an iPhone app?
In other words, how can I sell st...
Or is turning into a fault the same as deleting that thing completely? I mean... is that guy then just still alive as a super lightweight object with no big data inside, or is it actually deleted?
Or: Is a fault an object in memory with low footprint, or is that a "virtual object that COULD be there, but isn't yet"?
...
I'm extremely confused by the proper behavior of UITableView cell rendering. Here's the situation:
I have a list of 250 items that are loading into a table view, each with an image. To optimize the image download, I followed along with Apple's LazyTableImages sample code... pretty much following it exactly. Really good system... for ref...
I have successfully integrated the three20 framework in my project,
and I have extended the TTPhotoViewController to add some further
functionality.
Now I need to add some subviews to the TTPhotoView loaded by the
TTPhotoViewController. In particular I would like to add that subviews
after every TTPhotoView as been loaded. These subview...
Is there some difference between the way that bundle resources can be accessed on the iPhone simulator versus a device (in my case, an iPad)? I am able to access a file on the former, but not the latter.
NSString *filePath = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] bundlePath], @"/AppResources/html/pages/quickHelp.html...
Hello,
I have an app A which is registered to apple to receive notifications and this generates "tokenA" which is passed to "providerA".
Now there is a another app B which is registered to apple to receive notifications and this generates "tokenB which is passed to "providerB".
So if "providerB" somehow gets hold of "tokenA" can "prov...