Getting Started with Sencha Touch

This document describes how to get started with Sencha Touch. It explains the basic steps for using Sencha Touch to create Web applications for touch-based devices. Additionally, it provides detailed steps for creating the GeoTweets example application, which is one of the example applications included in the Sencha Touch release package.

This document is written for Web developers who want to quickly get started using Sencha Touch to create Web applications for touch-based devices. It assumes you have downloaded the Sencha Touch libraries. have a properly installed and configured Web server, and are familiar with Web application development and concepts such as JavaScript, HTML, Cascading Style Sheets (CSS), Web servers, and so forth.

This document contains the following sections:

Introduction to Sencha Touch

Sencha Touch is a JavaScript framework for creating Web applications targeted to touch-based devices. With Sencha Touch, you can use the skills you already possess to create an elegant and consistent user experience with minimal effort. Sencha Touch makes use of technologies such as HTML and CSS to provide native-quality application experiences without needing plugins.

Using Sencha Touch: Main Steps

  1. Set up your Environment
  2. Create the HTML File
  3. Create the Application JavaScript File
  4. Test the Application
  5. Update the Application for Production
  6. Put the Application into Production

To use Sencha Touch to create JavaScript applications for touch-based devices, follow these main steps:

  1.  
    1. Upload the library files to the destination directory on your Web server.
    2. Upload the application files (html, js, and css) and all referenced files to the destination directory on your Web server.
    3. Point your browser to http://localhost:8080/myapp.html where:
      • localhost is the Web server host name or IP address
      • 8080 is the Web server port number
      • myapp.html is the name of the application HTML file
    1. Open the HTML file.
    2. Locate the code that specifies the Sencha Touch Library. For example:
    	<!-- Sencha Touch JS -->
    	<script type="text/javascript" src="../../sencha-touch-debug.js"></script>
    	
  2. Replace sencha-touch-debug.js with sencha-touch.js. sencha-touch.js is optimized for production. It is compressed and does not contain documentation.
  3. Save the HTML file.
  • Download the Sencha Touch Libraries.
  • Make sure your development environment is set up.
  • Make sure your development and production Web servers are properly installed and configured.
  • Know the name of the CSS file you want your application to use. You will need this file name when you create the application HTML file in the next step.
  • the default Sencha Touch cascading style sheet (CSS) file, sencha-touch.css.
  • the application's CSS file. For example, mycss.css.
  • the version of the Sencha Touch library you want the application to use.

    Sencha recommends that you:

    • use the debug version of the library, sencha-touch-debug.js, during application development and testing. The debug version helps you detect and troubleshoot errors, as well as to see exactly where in the library errors occur.
    • change the HTML file to link to the production version of the library, sencha-touch.js, before you put your application into production. For more information see Update the Application for Production.

       

  • the application's JavaScript file, which you will create in the next step. For example, myapp.js.
  • In the editor of your choice, create the JavaScript file for your application. For an example of an application JavaScript file, see Creating the Application JavaScript File.
  • Save your file with the desired name and .js extension. For example, myapp.js. Link to this file in the HTML file you created in the previous step.
Set up your Environment Create the HTML File

In the editor of your choice, create the HTML file for your application. For an example of an application HTML file, see Detailed Steps: Creating the HTML File.

The application HTML file is where you specify links to:

Save the HTML file with a logical name such as myapp.html. After you have finished writing the application and have put it on your local Web server, you will point your browser to this file name on your local Web server in order to view and test your application.

Create the Application JavaScript File Test the Application

To test your application:

 

Update the Application for Production

When you are done testing your application, change the application's HTML file to point to the production version of the Sencha Touch library. To do so:

 

Put the Application into Production

When your application is ready for production, simply put a copy of the application's source files and any other files the application references on your production Web server.

Using Sencha Touch: Detailed Steps for Creating the GeoTweets Application

This section expands on the main steps described in the previous section by walking you step-by-step through the process of creating a Sencha Touch application. This complete source for the application, GeoTweets, can be found in the /examples/guide subdirectory in the Sencha Touch release package.

The GeoTweets application demonstrates how easy it is to use Sencha Touch to create a simple yet powerful application. The application:

  • uses Geolocation to find nearby tweets from Twitter.
  • shows the tweets in map and list views as cards which display on tabs.
  • uses a special animation effect when application users switch between the cards.

The following sections describe the application HTML and JavaScript files and break down creation of the application code into steps.

 

Creating the HTML File

The first step in creating a Sencha Touch application is to create an HTML file that links to Sencha Touch and application CSS files, the Sencha Touch library, and the application JavaScript file.

The GeoTweets application HTML file is index.html and its contents are as follows:

 <!DOCTYPE html>
 <html>
 <head>
     <meta charset="utf-8">
     <title>GeoTweets</title>

	 <!-- Sencha Touch CSS -->
	 <link rel="stylesheet" href="../../resources/css/sencha-touch.css" type="text/css">

	 <!-- Custom CSS -->
	 <link rel="stylesheet" href="css/guide.css" type="text/css">

	 <!-- Google Maps JS -->
	 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

	 <!-- Sencha Touch JS -->
	 <script type="text/javascript" src="../../sencha-touch-debug.js"></script>

	 <!-- Application JS -->
	 <script type="text/javascript" src="src/index.js"></script>


 </head>
 <body></body>
 </html>

The HTML file for the GeoTweets application links to five files:

  • The default CSS style sheet for Sencha Touch (sencha-touch.css).
  • The custom application CSS (guide.css).

This document does not describe the CSS file in detail because its properties are straight-forward and should be self-explanatory. Additionally, this document assumes you are familiar with Web application concepts such as CSS.

The Google Maps library ( http://maps.google.com/maps/api/js?sensor=true). The Sencha Touch library (during development and testing, use the debug version of the Sencha Touch library, sencha-touch-debug.js).

The debug version of the library is not compressed and it contains documentation. This can be helpful if an error occurs, as it allows you to see exactly where in the library the error occurred. Normally, in production, you would use sencha-touch.js, which is the version of the library that is optimized for production.

The application JavaScript file ( index.js).

NOTE: Notice that the <body> tag in the HTML file is empty. This is because Sencha Touch automatically generates the page content via JavaScript.

Creating the Application JavaScript File

Once you have created the HTML file, you are ready to create the application JavaScript file. This section shows the entire contents of the application JavaScript file and breaks down the creation of the application code into steps.

The GeoTweets application JavaScript file is index.js and its contents are as follows:

Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {
        var timeline = new Ext.Component({
            title: 'Timeline',
            cls: 'timeline',
            scroll: 'vertical',
            tpl: [
                '<tpl for=".">',
                    '<div class="tweet">',
                            '<div class="avatar"><img src="{profile_image_url}" /></div>',
                            '<div class="tweet-content">',
                                '<h2>{from_user}</h2>',
                                '<p>{text}</p>',
                            '</div>',
                    '</div>',
                '</tpl>'
            ]
        });

        var map = new Ext.Map({
            title: 'Map',
            getLocation: true,
            mapOptions: {
                zoom: 12
            }
        });

        var panel = new Ext.TabPanel({
            fullscreen: true,
            cardSwitchAnimation: 'slide',
            items: [map, timeline]
        });

        var refresh = function() {
            var coords = map.geo.coords;

            Ext.util.JSONP.request({
                url: 'http://search.twitter.com/search.json',
                callbackKey: 'callback',
                params: {
                    geocode: coords.latitude + ',' + coords.longitude + ',' + '5mi',
                    rpp: 30
                },
                callback: function(data) {
                    data = data.results;

                    // Update the tweets in timeline
                    timeline.update(data);

                    // Add points to the map
                    for (var i = 0, ln = data.length; i < ln; i++) {
                        var tweet = data[i];

                        // If the tweet is geo-tagged, use that to display marker
                        if (tweet.geo && tweet.geo.coordinates) {
                            var position = new google.maps.LatLng(tweet.geo.coordinates[0], tweet.geo.coordinates[1]);
                            addMarker(tweet, position);
                        }
                    }
                }
            });
        };

        // These are all Google Maps APIs
        var addMarker = function(tweet, position) {
            var marker = new google.maps.Marker({
                map: map.map,
                position: position
            });
        };

        map.geo.on('update', refresh);

        var tabBar = panel.getTabBar();
        tabBar.addDocked({
            xtype: 'button',
            ui: 'mask',
            iconCls: 'refresh',
            dock: 'right',
            stretch: false,
            align: 'center',
            handler: refresh
        });

    }
});

The JavaScript code in the GeoTweets application file defines:

  • the application cards, timeline and map. The timeline card is defined as an Ext.Component and it displays tweets in a list. The map card is an Ext.Map component and it displays the locations of the tweeters on a map.
  • a TabPanel component, called panel which contains two tabs: Timeline (which displays the timeline card) and Map (which displays the map card) within an animated transition for switching between the cards.
  • refresh and addMarker functions. The refresh function updates the data from Twitter. The addMarker function determines the geographic locations of the tweeters to display on the map card.
  • a custom refresh button.

Note: In this application, components are created with the following syntax:

    var objectName = new Ext.ComponentName({
        objectDefinition
    }); 

where:

  • objectName is the name of the variable used to reference the object.
  • ComponentName is the name of the object's class.
  • objectDefinition defines the object's properties and behavior.

The following sections walk you through the steps for creating the application script.

Beginning the Application Script File

In the editor of your choice, begin writing the application script. The first lines of JavaScript code for the application file (index.js) are as follows:

Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {

The Ext.setup method sets up a page for use on a touch-enabled device. It allows you to set various start up properties and behaviors for your application. For detailed information on the Sencha Touch API, including this method, see the Sencha Touch API Documentation.

The GeoTweets application code specifies the following start up properties:

  • tabletStartupScreen Property. Specifies the name of the icon file to use as the application's start up screen on tablet devices.
  • phoneStartupScreen Property. Specifies the name of the icon file to use as the application's start up screen on phone devices.
  • icon Property. Specifies the name of the application's default icon file, icon.png.
  • glossOnIcon Property. Specifies whether you want the gloss effect to be applied to the default icon. In this case, the value is set to false indicating not to add gloss to the default icon.
  • onReady Method. Specifies the function to run when the browser's Document Object Model (DOM) is ready after the application HTML file has loaded.
    • The timeline card to display tweets in a list
    • The map card to display tweets on a map
    • The panel Ext.TabPanel container component
    • A refresh function for updating the tweet data in the cards
    • An addMarker function for displaying the geographic locations of the tweeters
    • A refresh button on the tab bar that uses the refresh function to get the latest data from Twitter and redisplay it in the cards
    • Defines three properties that control the appearance of the card:
      • title Property. Specifies the label Timeline to appear on the tab for this component.
      • cls Property. Specifies the CSS class, which you can use to style elements on the timeline.
      • scroll Property. Specifies the direction in which this Ext.Component is scrollable. In this case, it is set to 'vertical', making the card vertically scrollable. For other possible values, see the Sencha Touch API Documentation.
    • Defines a template for displaying the tweets. Sencha Touch uses templates to dynamically render information in components.
    • title Property. Specifies that the label Map appears on the tab for this component.
    • getLocation Property. Uses the Geolocation utility to automatically get the application user's location and set it as the center of the map.
    • fullscreen Option. Specifies that this component will take up the full width and height of the screen, and automatically renders the component to the page.
    • cardSwitchAnimation Property. Specifies the slide special effect animation to use when switching between cards.
    • items Property. Specifies the previously-defined component objects (cards) to add to this container.
    • a url option. This option specifies the URL to which you want to make an external call using JSONp. The corresponding code is:
      url: 'http://search.twitter.com/search.json',
    • the callbackKey. This function runs when data is returned.
    • params (parameters). These parameters are passed directly into the request and run a basic search for nearby tweets. The corresponding code is:
      	params: {
      	          geocode: coords.latitude + ',' + coords.longitude + ',' + '5mi',
                rpp: 30
          
      • the geocode parameter, which gets tweeter locations within a five mile radius of the application user.
      • the rpp parameter, which specifies the number of tweets (30 in this case) to return per page of data.

    The specific parameters used to run a basic search for nearby tweets are:

  • ui Property. Controls the appearance of the UI.
  • iconCls Property. Specifies the CSS class for the button.
  • dock Property. Controls the horizontal (left to right) position of a docked object. In this example, it is set to 'right', which positions the button horizontally on the right side of the tab bar.
  • stretch Property. Defines whether a docked object maintains a fixed height or whether its height stretches as the tab bar's height changes when it is resized. In this example, the property is set to false, which specifies that the docked button maintains a fixed height regardless of whether the tab bar is resized.
  • align Property. Controls the vertical (top to bottom) position of a docked object. In this example, the property is set to 'center', which centers the object vertically on the tab bar.
Within the function in the onReady method, you define the rest of the application code, as explained in the following sections. The rest of the application code consists of:

 

Defining the Timeline Card

The timeline card displays tweets in a list view. It is created as an Ext.Component, which is a generic shell for data and other components or widgets.

The JavaScript for the timeline card Ext.Component is as follows:

    var timeline = new Ext.Component({
        title: 'Timeline',  // Name that appears on this tab
        cls: 'timeline',    // The CSS class. Lets you style elements on the timeline.
        scroll: 'vertical', // Make it vertically scrollable
        tpl: [              // Set up a template to display tweet data
          '<tpl for=".">',
            '<div class="tweet">',
              '<div class="avatar"><img src="{profile_image_url}" /></div>', // Tweeter's picture
              '<div class="tweet-content">',
                '<h2>{from_user}</h2>',       // Tweeter's name
                '<p>{text}</p>',              // Tweeter's message
              '</div>',
            '</div>',
        '</tpl>'
       ]
    });

The timeline card Ext.Component:

This template updates the timeline card component with data from Twitter. The template tags, profile_image_url, from_user, and text are enclosed in curly braces ({}) and match the JSON format in which Twitter data is stored. The Ext.util.JSONP.request method retrieves the data.

In the application CSS file, guide.css, you can set and change the way the classes defined in the template code appear on device screens.

The following figure shows a typical timeline card that the application might display:

Defining the Map Card

The map card displays a map of the nearby tweets.

The JavaScript for the map card, which is an Ext.Map component, is as follows:

    var map = new Ext.Map({
        title: 'Map',        // Name that appears on this tab
        getLocation: true,   // Gets user's current location
        mapOptions: {        // Used in rendering map
          zoom: 12
        }
    });

Ext.Map creates a Google Map component by wrapping a Google Map in an Ext.Component. As with other Ext components, the Ext.Map component defines properties that control the appearance of the card:

Ext.Map also specifies mapOptions which are used in rendering the map. The mapOptions you set as part of an Ext.Map component are passed directly to the Google Map object. For more information on these options and the Google Maps API, see the Google Maps API Documentation.

 

In this example, the zoom option, which specifies the initial map zoom level, is set to 12.

 

The following image shows the map card:

Defining the Tab Panel Component

Ext.TabPanel is a container component that holds the objects that the application displays. In this case, the TabPanel component contains the two previously-defined components timeline and map, automatically adds tabs with the specified titles (Timeline and Map) above the cards (components), and provides the logic for switching between the cards.

The Ext.TabPanel application code is as follows:

    var panel = new Ext.TabPanel({
        fullscreen: true,            // The panel will take up the full rather than partial screen
        cardAnimation: 'slide',       // Special effect for switching between cards
        items: [map, timeline]       // Components (cards) that the tabs correspond with
    });

The TabPanel card component defines three properties that control the appearance of the tab panel:

 

The following image shows the effect of switching between the cards in the application:

There are additional transition effects you can use for changing cards, such as flip, wipe, cube, pop and so forth. For more information, see the API documentation for the Ext.anims class.

Getting Data from Twitter

The refresh function is called when the application starts up and again whenever the refresh button (which you define in a later section) in the application is tapped. The function makes an external request to gather data from Twitter. It also calls an addMarker function that gets the geographic data for adding markers that show tweeter locations on the map.

The corresponding code from the application file is as follows:

    var refresh = function() {                           // Define the refresh function

      var coords = map.geo.coords;                       // Define a coords variable from the maps geolocation
      Ext.util.JSONP.request({                           // Make an external call using JSONP
        url: 'http://search.twitter.com/search.json',    // to this URL
        callbackKey: 'callback',                         // Set the required Twitter callback parameter
        params: {
          geocode: coords.latitude + ',' + coords.longitude + ',' + '5mi', // Get lat, long, and radius
          rpp: 30                                        // Number of tweets per page
        },
      callback: function(data) {                         // Provide structure to hold data from Twitter callback
        data = data.results;                             // Hold Twitter info in variable called data
        timeline.update(data.results);                   // Update the tweets in timeline

        for (var i = 0, ln = data.length; i < ln; i++) { // Loop to add points to the map
          var tweet = data[i];                           // Get data for a single tweet

          if (tweet.geo && tweet.geo.coordinates) {      // If the tweet is geo-tagged, use that to display marker
            var position = new google.maps.LatLng(tweet.geo.coordinates[0], tweet.geo.coordinates[1]);  // Get coords
            addMarker(tweet, position);                  // Call addMarker function with new data
          }
        }
      }
    });
  };

The Ext.util.JSONP.request provides an easy way to make a JSON call to Twitter. To it, you pass:

Note The geocode and rpp parameters are specific to the Twitter Search API.

The callback function receives the data from Twitter and stores it in the data variable. It first updates the timeline card with a list of the tweets. Recall that the template defined in the timeline card component looks for {profile_image_url}, {from_user}, and {text}, all of which are defined in the results.

The application code for the callback function is as follows:

callback: function(data) {
        data = data.results;
        timeline.update(data.results);

The following is an example of the raw data that comes back from Twitter:

{"results":
[{"profile_image_url":""http://a1.twimg.com/profile_images/704555348/boat3_normal.jpg...
"from_user":"jonathanjulian",...
"text":"@agnellvj have a look at the most intense #extjs book to be published do far!",
...

The for loop goes through the Twitter data one tweet at a time and checks for geographic tagging. If a tweet is geo-tagged, then the latitude and longitude coordinates are stored in the position variable and passed to the addMarker function, which adds the tweet to the map.

 

The corresponding code is as follows:

 for (var i = 0, ln = data.length; i < ln; i++) {
           var tweet = data[i];

           if (tweet.geo && tweet.geo.coordinates) {
             var position = new google.maps.LatLng(tweet.geo.coordinates[0], tweet.geo.coordinates[1]);
            addMarker(tweet, position);
Adding Tweet Markers to the Map

The addMarker function adds tweets to the map based on location. The logic in this function deals almost entirely with the Google Maps API and is not specific to Sencha Touch.

The corresponding code from the application file is as follows:

   var addMarker = function(tweet, position) {        // Define addMarker function
            var marker = new google.maps.Marker({          // Define variable to hold marker data
            map: map.map,
            position: position,
        });
    }
Adding a Refresh Event

The refresh function runs each time the Geolocation utility within the map is updated. Because you set getLocation: true on the Map component, refresh runs immediately after the page has loaded and has retrieved the application user's location.

The corresponding code, which specifies when refresh runs is as follows:

    map.geo.on('update', refresh);

Note: The Twitter API often serves cached data and refreshes periodically, which means that new tweets may not always display each time a user taps the refresh button.

Adding a Custom Refresh Button to the Tab Bar

To add the custom refresh button to the Tab Bar, first retrieve the TabBar portion of the TabPanel with the following code:

    var tabBar = panel.getTabBar();

The following image shows the Tab Bar.

This section describes a technique for creating a custom refresh button as a docked item on the GeoTweets application tab bar.

To add a button to the TabBar, create a component by passing an object directly to the addDocked function. By using an xtype property in this object, you can create the new button on the fly, inline with the code. This functionality is found throughout the library. Any place where you would typically insert a component or widget, you can also use a flat object with the configuration properties and an xtype property. While using this technique is a fast way to generate interfaces, it can also be less maintainable.

    tabBar.addDocked({
        xtype: 'button',          // Specifies an instance of the button class
        ui: 'mask',              // Appearance, for example, "light", "dark", etc.
        iconCls: 'refresh',       // CSS class for the button
        dock: 'right',            // Puts the new button at the right of the tab bar
        stretch: false,           // Prevents the button from stretching to full height of tab bar
        align: 'center',          // Centers the button vertically within the tab bar
        handler: refresh          // Refreshes the current card when users tap
    });

There are several properties that control the layout of docked objects. The GeoTweets application uses the following properties:

Additionally, the handler function is called when an application user taps the button. In this application, we specify that the refresh function is called when the button is tapped.

The following image shows the button you defined:

Testing the Application

Once you have finished writing and have saved the application JavaScript file you are ready to test it. To do so, follow the directions in Test the Application.

Updating the Application for Production

When you are done testing your application, follow the directions in Update the Application for Production to change from the debug to the production version of the Sencha Touch library.

Putting the Application into Production

When you are ready to release your application for general use, follow the directions in Put the Application into Production.

Summary and Further Reading

As you can see, creating JavaScript Web applications with Sencha Touch is quick and simple! The Sencha Touch release package includes many other examples you can browse and learn from.

For further information on the topics covered in this document, see:


This file last updated July 26, 2010.

若依框架集成saToken 若依版本3.8.8,鉴权采用security框架,这种框架太重,项目中想实现对外提供接口功能。尽快减少修改原框架的逻辑基础上,采用satoken实现。 阅读详情

相关推荐

别再用MounRiver了!在VSCode里用PlatformIO搞定CH32V208开发(附完整配置流程)

本文详细介绍了如何在VSCode中使用PlatformIO进行CH32V208开发,替代传统的MounRiver Studio。通过完整的配置流程和优化技巧,开发者可以构建高效、现代化的RISC-V开发环境,显著提升编译速度和开发效率。

weixin_28711397的博客 534

Sencha Touch---Getting Started with Sencha Touch 2

Getting Started with Sencha Touch 2 First, you'll need to download the freeSencha Touch 2 SDKandSDK Toolsfrom the Sencha website. You'll also need: A web server running locally on your co...

anguwei7911的博客 147

Centos7网络配置(设置固定ip)

刚安装完系统,有的人尤其没有勾选自动网络配置的情况下,是访问不了外网的,本机也连不通虚拟机。或者现在有的是动态ip,几次之后启动ip地址就变了,会导致其他软件或程序之前连接配置要重新更改,很麻烦,下面讲解一下如何配置网络,如何设置成固定ip。

个人笔记git:https://gitee.com/tlangp/note.git 8053

Getting Started with Sencha Touch 2

什么是sencha touch? sencha touch能使您快速、 轻松地创建基于 HTML5 的在 Android、 iOS 和黑莓手机设备上运行的移动应用程序,并且能编译出一个像内置浏览器一样的本地应用。

bill_hu 306

STM32结合FFT与窗函数优化,实现高精度正弦信号提取

本文详细介绍了如何在STM32嵌入式平台上结合FFT算法与窗函数优化技术,实现高精度正弦信号提取。通过分析频谱泄漏原理,对比汉宁窗、汉明窗等窗函数特性,并提供实际代码示例和幅值补偿方法,有效解决了工业检测中信号精度不足的问题。

v5w6x的博客 221

最新首发——boss直聘爬虫

本文介绍了使用Python开发Boss直聘爬虫的核心思路和技术要点。通过模拟浏览器访问搜索页面获取Cookie,然后构建API请求获取职位数据。关键步骤包括:1)使用DrissionPage库初始化浏览器;2)模拟用户浏览行为获取必要参数;3)设置完整的请求头信息;4)通过POST请求获取JSON格式的职位数据。文章提供了详细的代码实现,包括浏览器模拟、API请求构建、数据处理等核心功能模块,并强调了最新版接口改为POST访问的特点。该爬虫可自动翻页采集数据并保存为Excel文件,适用于安全实习等职位信息的

2301_79735033的博客 3317

第一天(Getting Started with Sencha Touch)

原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/getting_started 什么是sencha touch? sencha touch 能够让你快速、容易的构建以html5为基础运行于手机设备上的app应用,并且使运行于浏览器或者混合型脚本中的app具有原生app相似的用户体验。它支持安卓、ios、windows pho

yax405的专栏 1810

单细胞空间转录组分析流程学习python版(三)

空转python版学习

zfyyzhys的博客 2084

Sencha学习笔记1: Getting Started with Sencha Touch - 官方Sencha Touch入门指南

Sencha Touch is a high-performance HTML5 mobile application framework. You can use Sencha Touch to produce a native-app-like Sencha Touch是一个高性能的HTML5移动应用(开发)框架,你可以使用Secha Touch来建立一个内嵌在浏览器或者混合外壳中的拥有着有如本地应用体验一样的移动应用。 Sench Touch支持安卓,iOS,Windows手机,Microsoft

天地会珠海分舵 2573

避开这些坑!智鼎MAP性格测试高分指南(附互联网/国企/外企答题模板)

本文深入解析智鼎MAP职业性格测试的核心逻辑与常见陷阱,提供针对互联网、国企、外企三大行业的差异化答题策略与实战模板。帮助求职者理解测试本质,避开追求完美人设、忽视程度副词等心理陷阱,塑造与目标岗位高度匹配的职业画像,从而在招聘关键环节脱颖而出。

rainy的博客 982

RT-DETR改进策略【模型轻量化】| 替换骨干网络为 2024轻量化网络MoblieNetV4:移动生态系统的通用模型

本文记录的是基于MobileNet V4的RT-DETR目标检测轻量化改进方法研究。通过整合UIBMobile MQA以及优化的NAS策略能够在在不降低性能指标的前提下,降低计算成本。本文配置了原论文中和五种模型,以满足不同的需求。

Limiiiing的博客 1922

20-things-to-avoid-or-do-when-getting-started-with-extjs-and-sencha-touch

[url]http://www.swarmonline.com/2011/05/20-things-to-avoid-or-do-when-getting-started-with-extjs-and-sencha-touch/[/url]

Inner peace 137

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

【转】在webview加加载数据时添加一个Loading...动画的两种方法

【转】在webview加加载数据时添加一个Loading...动画的两种方法   大家使用iPhone/iPod浏览网页时,一定见过浏览器加载网页时,总会出现一个Loading动画,其实这是实现起来是非常简单的。下面就是两种不同的实现方法: 第一种方法: //创建UIWebView   WebView = [[UIWebView alloc] initWithFrame:CG...

xinlanzero 1991

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

Windows远程桌面连接Mac OS X —— VNC

标签:Mac Windows VNC 远程连接 Viewer 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 http://afantihust.blog.51cto.com/2231549/481884 &lt;!--正文 begin--&gt; 为了项目展示需要,要从Windows远程桌面连接Mac OS X,调研半天...

xinlanzero 950

iphone认证文件无效解决办法

  1,新建device,UUID是你客户iphone手机的UUID 2,新建一个AdHoc的Distribution provision文件,设备里一定框选上上述1建的客户的设备。 3,下载后,拖进X-code 4,在你的project的res里,新建一个文件叫 Entitlements.plist 5,到target Info-&gt;Build里面,Code Signing Ent...

xinlanzero 919

iPhone全系列iboot版本检查教程

iPhone全系列iboot版本检查教程 &lt;!--正文开始--&gt;   iPhone全系列iboot版本检查教程,以下以iPhone 3GS为例。 usbview下载   令iPhone进入DFU模式:a、开启iTunes,将iPhone接上电脑b、把iPhone正常关机, 首先按下"home按钮"c、再快速按一下"关机键"后立即放开("home按钮"保持按着)d、继续维持按着"...

xinlanzero 851

iPhone新手扫盲名词解释

作者:Reek 时间:2010-06-03 小编有话说: iPhone 3GS入手,用了一段时间,依然什么都还不懂,近期不断有疯友发邮件询问这方面的情况,小编就应广大机友的需求,汇总整理了这篇iPhone相关的名词解释,期待一些对基本概念还搞不清楚的机友们仔细的阅读消化一下。 基带:疯友们常说的基带(数字基带)是相对于模拟频带来说的,基带的功能是数字信号调制解调的功能,也...

xinlanzero 371

cocoa 如何发音?

apple 自带字典的解释: cocoa |ˈkōkō| noun 1 a chocolate powder made from roasted and ground cacao seeds. • a hot drink made from such a powder mixed with sugar and milk or water. 2 variant spelling of co...

xinlanzero 294

iPhone 突然发现,setting配置文件中的DefaultValue可能拿不了值

按照我的想法,如果用户没有在setting设置值且有default-value,那么应该获取的是default-value,因为打开setting也能看见这些值.但是今天突然发现好像不是那么会事.获取的是null.看了AppPrefs的代码,它也进行了判断.如下:   - (void)applicationDidFinishLaunching:(UIApplication *)applicat...

xinlanzero 169

关于NSAutoreleasePool的release和drain的区别

苹果官方文档的翻译 In a garbage collected environment, release is a no-op. NSAutoreleasePool therefore provides a drain method that in a reference-counted environment behaves the same as calling release, bu...

xinlanzero 164

XCode 真机测试发布时产生The executable was signed with invalid entitlements.解决办法之一...

最近开发iPhone程序,获得开发签名后在真机器上部署测试,在点击Build And Run后,提示The executable was signed with invalid entitlements.(The entitlements specified in your application’s Code Signing Entitlements file do not match thos...

xinlanzero 162

iPhone3开发基础教程中部分有用代码片段(1)

《beginning iphone3 development exploring the iphone SDK》一书中有很多基础的代码片段 ,由这些最原始的代码片段组成了我们的复杂的iphone应用程序,所以这里就借用一网友的总结,一大家一起分享。   1. stringWithFormat 用法: view plaincopy to clipboardprint?[NSString st...

xinlanzero 145

Download, Create and Display an Image from URL

Posted on November 4, 2009 by John Muchow in Cocoa Tweet &lt;script src="http://platform.twitter.com/widgets.js" type="text/javascript"&gt;&lt;/script&gt;&lt;!-- &lt;a target="_blank" href="

xinlanzero 142

Creating an UIImage from a URL

A question came up over the weekend as to download an image off the internet and add it to a UIImage object on the iPhone. The answer is to create an NSData object that grabs the contents of the URL a...

xinlanzero 131

XCode4添加Framework的方法

    用上了xcode4,感觉不错,苹果的设计风格绝对一流,能把枯燥的IDE做成iTunes式的播放器风格,只有苹果能做到。 和前一版本相比,有很大的变化,比如以前的Add Existing Framework的菜单功能找不着了,原来放到项目设置中了,方法如下:   select your project, select the target, go to the 'build...

xinlanzero 130
上一篇: (转)应用程序开发感受对比-Symbian/Android/iPhone/WM
下一篇: (转)Acegi 各种加密方式详解
xinlanzero
博客等级 码龄25年 10粉丝 132原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值