I am noticing a surge in memory and the responsible caller as listed in instruments is img_data_lock and responsible library is coregraphics.
I have been reading that the issue relates to cached vs not cached image load ? (http://stackoverflow.com/questions/316236/uiimage-imagenamed-vs-uiimage-imagewithdata) Currently my app loads a se...
an Hi,
I have an UITextField in one view, UITextField A in View A.
And I have another in view B, UITextField B in View B.
I use a Navigation Controller Bar to switch between the views. The UITextFields are properties and connected Outlets of both views A and B.
On my view A there is an "Options"-button which pushes view B. So when you...
Hi
I am looking for a stable (and Apple compliant) registration and authentication design pattern between an iphone device and a server. Ideally the registration and authentication would not involve the user and be a background process.
So far I've found 3 primitives for doing components of this:
UDID
UUID
SBFormattedPhoneNumber
...
[I'm sure this is not odd at all, but I need just a bit of help]
I have two retain properties
@property (nonatomic, retain) NSArray *listContent;
@property (nonatomic, retain) NSArray *filteredListContent;
and in the viewDidLoad method I set the second equal to the first (so now the retainCount is two, I think):
self.filteredListCon...
I have a UITabBarController that loads a UINavigationController for each of its tab. The first tab is obviously my initial screen, however I don't want the tab-bar to be visible for this screen.
Maybe my approach is wrong. How can I make sure that a UINavigationController is shown as my initial screen?
...
A form is pushed onto the view. The form has several required fields. Also the form needs to be validated. I want to intercept the back button's click to check if the fields have been filled in, and validate the form. How would I intercept the button's click, and make sure it doesn't pop to the previous screen?
...
I want my UITableViewCell to look like the image below where there seems to be two labels. Is this possible without subclassing UITableViewCell?
...
I have a navigation controller with a table view. In most tutorials I've read they usually have an array of view controllers (or subclasses of) stored locally in the table view controller that they use to push onto the navigation stack when a table cell is selected.
In my current project I have a lot of data that is loaded from an XML ...
As I get closer to releasing my first public iPhone app I'm concerned about catching crashes in the field. I'm curious to hear how others have gone about this.
I'm not sure what's possible outside of the debugger. Is all lost with an EXC_BAD_ACCESS or can I still catch it and get something useful into a log? Is the program main() the sp...
If I have a normal input element it will show a rounded border with what appears to be an inset shadow.
Any ideas how I can remove this shadow?
...
Hello,
I know it should persist if my Core Data Model has not changed, but how safe it is ?
I'm an inhouse developer and we have 20 iPods with some information there, entered by our users. Now there's some bug that this info can't be exported, so we have to install a new update and export that information.
We are not going to change t...
I am using Open Source toolchain to compile my iPhone apps. So I have no Interface Builder or XCode. How would I setup the layout of widgets like UIButton, UITextView, etc. Also, how would I add an event handler to those UI widgets? Please remember that I don't have Interface Builder or XCode.
...
My problem is twofold: 1) I'm trying to determine an eloquent way to allow the user to type into a UITextView and store the time each word was typed into an array. The time will be a float which starts at 0 when the user begins to type. 2) Conversely, I'd like the user to be able to tap on a word in the UITextView and display the time th...
I've configured a simple MFMailComposeViewController below. If I populate the setToRecipients, everything works fine, the email is sent. If I do not populate the setToRecipients, the mail composer window pops up but all fields remain non-editable.
I thought the MFMailComposeViewController would allow the user to edit the email before se...
Background: I use a ton of NSDictionary objects in my iPhone and iPad code. I'm sick of the verbose way of getting/setting keys to these state dictionaries.
So a little bit of an experiment: I just created a class I call Remap.
Remap will take any arbitrary set[VariableName]:(NSObject *) obj selector and forward that message to a funct...
Hello all! I am trying to make an app that will only be viewed in Landscape. I have looked up some tutorials (albeit older ones) and have done the following:
-set up the info.plist to include a key for uiinterfaceorientation
-in the main view controller I have set the frame to be 480 x 320
Now, the first screen loads up ok. Everythi...
I'm developing and website and I need it to scroll to an anchor. It needs to be animated, so I decided to use jQuery for that. I tried this:
function goToByScroll(id){
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
It works perfectly on the desktop. On Mobile Safari it first goes to the top of the page, th...
Hi! I'm a newbie developer of iPhone.
Right now I'm working on an app that has the functionality of opening a pdf, and showing a specific page and letting the user to navigate through it. Like a book reader.
But now I need to access the table of contents to make a mini menu with it. Any idea how do you access that table of contents?
...
When I develop in .NET there's lots of UI controls from companies like Infragistics and Telerik that enable me to build above-and-beyond standard usability and stylish GUIs rapidly. Is there anything like that for iPhone Objective-C development?
...
Is there ever a time when the touchesBegan, touchesMoved, and touchesEnded methods would be handled inside a UIViewController vs. UIView?
I understand that they are typically used in a custom UIView but I am curious about this situation.
Thanks
...