ios-4.2

Changing font formattings of selected word/line in a UITextView

一个人想着一个人 提交于 2019-12-12 23:46:21
问题 Has anyone tried to change the font formatting(bold/italic/color) of a selected word or sentence in a UITextView, like a text editor application? I have been trying to do this but it seems formatting is applied only to the whole text, not on individual words or sentences. 回答1: UITextView cannot style text fragments. Styles, colors and fonts are applied to the entire text. You may wish to use a UIWebView or Core Text to render your text instead. 回答2: you can change any specific word font,

Error Installing Xcode 3.2.5 along with iOS SDk 4.2

…衆ロ難τιáo~ 提交于 2019-12-12 13:59:16
问题 Hi, I am upgrading Xcode to 3.2.5 from 3.2.4 along with iOS SDK 4.2. I keep getting following error message at the end of the installation: "installation failed contact software manufacture". Please check attached screenshot for more details. Can you please suggest what needs to be done? Thanks! 回答1: roll your date back to 1/1/2012. Just had the same issue and that allowed it to finish! 回答2: Check the /var/log/install.log file for any error it might log. 回答3: Open up Console.app (found in

how to popup default iphone keyboard on a button click

﹥>﹥吖頭↗ 提交于 2019-12-12 10:55:12
问题 Hi When we click on a UITextField or UITextView, a default keyboard pops up from the bottom of iphone screen. I want iphone keyboard to appear on a button click, and then handle the keys as typed on keyboard... How can i do that? 回答1: Add touchupinside event on button and call becomeFirstResponder method for textview or textfield it will call pop up keyboard. see the following code- -(IBAction)buttonClicktoModalView:(id)sender{ [textView becomeFirstResponder]; } 回答2: I was searching my

fake call to applicationDidReceiveMemoryWarning being triggered even if I have around 80 MB of RAM left

二次信任 提交于 2019-12-11 22:49:47
问题 I have NSLog-ed the remaining memory in a timer repeating after 1 second. It just print the remaining memory. The runtime requirement app is around 20 MB max. Log shows free memory 90 MB+ when I launch the app. There is a tabBar in which one of the Tabs is having a Google Mapkit's Map. Once the application comes in working state, RAM - 80 MB. When I scroll through the zoomed map- BOOM!!! "applicationDidReceiveMemoryWarning" logger still shows free memory counter around 75-80 MB. This is

Can't make Xcode 4 run a barely empty project using SDK 4.2 (runs fine in 4.3)

浪子不回头ぞ 提交于 2019-12-11 07:51:39
问题 I created a blank NavBar project and only touched a couple lines or so on one of the view controllers. I tested it fine in the 4.3 iPad and iPhone emulator but can't make it work for 4.2 at all. I get an error saying: The selected run destination is not valid for this action. This is what I have on my project settings: Usually in XCode 3 that was all I needed to change but I guess I'm missing some setting in XCode 4. What could this be? 回答1: @pokstad, you are right. I was looking at the wrong

How to make tableviewcell text editable on touch in iPhone SDK?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:49:33
问题 In my iPhone app, I have a table view. I want that when the user selects (or basically touches) on the cell of the tableview then he/she should be able to edit the cell contents. How can I do that? 回答1: @PARTH in order to make your UITableView cells editable i suggest u to give textfields to your cell.... eg:- In -(UITableViewCell *)reuseTableViewCellWithIdentifier:(NSString *)identifier withIndexPath:(NSIndexPath *)indexPath { CGRect cellRectangle = CGRectMake (0, 10, 300, 70); CGRect

unrecognized selector sent to instance

ぐ巨炮叔叔 提交于 2019-12-10 21:28:13
问题 I am creating one sample application in which i am reading database and displaying user image and name into tableview. but i am getting following exception [UIApplication userListMutableArray]: unrecognized selector sent to instance 0x6816330 following is my code snippet AppDelegate *appDelegate = (AppDelegate*)[UIApplication sharedApplication]; if(sqlite3_open([dbPath UTF8String], &database)==SQLITE_OK) { const char *sql = "select NAME,IMAGE from user"; sqlite3_stmt *selectstmt; if(sqlite3

This App Is Incompatible With This iPod touch

本秂侑毒 提交于 2019-12-08 12:51:06
问题 I have developed an app that required iOS >= 4.0. But when I download it from App Store by using my iPod touch 2 (iOS 4.2.1), it says "This App Is Incompatible With This iPod touch". I don't know why. And when I use this iPod touch to run the app through Xcode, it also don't run on my iPod touch. How can I debug this error? I have read this and my app build settings show that "Architectures" is "Standard(armv7)" and "Valid Architectures" is "armv6 armv7", I wondered if it's wrong. 回答1: How to

Size of the Flash Builder 4.5 application after packaging with iTunes

大兔子大兔子 提交于 2019-12-08 10:58:05
问题 Creating an iOS app in Flash Builder 4.5 which is a small "Hello World" App, working fine on emulator and iOS devices. Before packaging the size of the application is 532 Kb but after packaging in iTunes the .ipa file generated which have size is 12 Mb. I want to know that how and why the file size increases and does the size consumes more battery power and memory usage?? Can any one explain?? 回答1: yes, because if you want to run the flex apps in iphone or android, you must install the

how to set uitoolbar's background similar to my navigation bar

本小妞迷上赌 提交于 2019-12-07 03:23:57
问题 Hello everyone: I have set a custom background for my navigation bar, it's a tint color i think that i chose from IB. Now i want to change the my uitoolbar's (added programmatically) background similar to my navigation bar, programmatically. Obliged for any help in this regard. Sorry guys my bad it's actually navigation controller's toolbar. so this worked for me: self.navigationController.toolbar.tintColor=self.navigationController.navigationBar.tintColor; Thanks all of u guys for quick